https://github.com/aimenux/webapihttploggingdemo
Using http logging middleware in order to log requests/responses
https://github.com/aimenux/webapihttploggingdemo
application-insights healthchecks net80 serilog telemetry-initializer telemetry-processor webapi
Last synced: about 2 months ago
JSON representation
Using http logging middleware in order to log requests/responses
- Host: GitHub
- URL: https://github.com/aimenux/webapihttploggingdemo
- Owner: aimenux
- License: mit
- Created: 2022-05-21T23:09:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T08:39:28.000Z (11 months ago)
- Last Synced: 2025-01-10T00:24:42.853Z (3 months ago)
- Topics: application-insights, healthchecks, net80, serilog, telemetry-initializer, telemetry-processor, webapi
- Language: C#
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/aimenux/WebApiHttpLoggingDemo/actions/workflows/ci.yml)
# WebApiHttpLoggingDemo
```
Using http logging middleware in order to log requests/responses
```In this demo, i m using [http logging middleware](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/http-logging/?view=aspnetcore-6.0#enabling-http-logging) in order to enable logging of requests/responses.
>I m also enhancing application insights telemetries through the using of :
>:heavy_minus_sign: [Telemetry processors](https://docs.microsoft.com/en-us/azure/azure-monitor/app/api-filtering-sampling#create-a-telemetry-processor) : filter swagger/health logs and not send them to application insights
>:heavy_minus_sign: [Telemetry initializers](https://docs.microsoft.com/en-us/azure/azure-monitor/app/api-filtering-sampling#addmodify-properties-itelemetryinitializer) : add apikey header to related request application insights telemetries
>**`Tools`** : net 8.0, serilog, telemetry processor, telemetry initializer, application-insights, healthchecks