An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

[![.NET](https://github.com/aimenux/WebApiHttpLoggingDemo/actions/workflows/ci.yml/badge.svg?branch=main)](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