https://github.com/vqcomms/tracingmiddleware
Add tracing to your ASP.Net Core pipeline
https://github.com/vqcomms/tracingmiddleware
Last synced: 9 months ago
JSON representation
Add tracing to your ASP.Net Core pipeline
- Host: GitHub
- URL: https://github.com/vqcomms/tracingmiddleware
- Owner: VQComms
- License: mit
- Created: 2014-07-02T11:35:06.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T10:29:22.000Z (about 4 years ago)
- Last Synced: 2025-01-19T12:11:34.136Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 1.17 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TracingMiddleware
Enable tracing to log entries in the ASP.Net Core pipeline.
Keys/Types can be included/ignored.
Log format, type format, log action can be globally set whilst type format and log actions can be set individually for each type and key.
Enables granular pipeline logging.
## Default Usage
```
public void Configuration(IApplicationBuilder app)
{
var defaultOptions = TracingMiddlewareOptions.Default;
app.UseTracingMiddleware(defaultOptions);
app.UseOwin(x => x.UseNancy());
}
```
The above produces:

## Custom Usage
For custom usage take a look at the demo app [here](https://github.com/VQComms/TracingMiddleware/blob/master/src/TracingMiddleware.Demo/Startup.cs)