Using http logging middleware in order to log requests/responses
In this demo, i m using http logging middleware in order to enable logging of requests/responses.
I m also enhancing application insights telemetries through the using of :
➖ Telemetry processors : filter swagger/health logs and not send them to application insights
➖ Telemetry initializers : add apikey header to related request application insights telemetries
Tools
: net 8.0, serilog, telemetry processor, telemetry initializer, application-insights, healthchecks