Skip to content

Add to customDimensions from MDC for logged requests

Kelly Domico requested to merge requests-custom-props into master

Currently, the MDC map key-value pairs are not included in logged requests. Request and exception logging is provided out-of-the-box with the App Insights and Spring Boot web JARs.

This MR adds a TelemetryInitializer for web requests that will allow adding custom dimensions for requests. It copies the MDC properties map to the Telemetry object's properties map. The properties will then show up in customDimensions in the requests table.

Edited by Kelly Domico

Merge request reports