feat: enable telemetry pre-processors for appinsights
-
This MR adds a telemetry pre-processor for azure appinsights. This ensure that the appinsights request logs have custom dimensions involving
correlation-id
andclient-id
. -
Client-id is set to the
azp
value in the authorizationJWT
. This is added to the custom dimensions only ifazp
value is available in the decoded token
-
The server initialization middleware ensures a correlation-id is always generated if no value is present in the request for it.
In the log below no correlation-id was sent in the request. The backend server middleware auto-generated a correlation-id and inserted in the request headers
Edited by Varunkumar Manohar