Hi - Thanks for the question. Based on the text I think you're referring to logging headers (to App Insights) through the [App Insights] logger diagnostic settings.
In the setting you have "advanced settings" and here you can select which context - for example are you logging headers from the request that originated from the client into APIM. Or, the request from APIM to the backend. And so on. As per example in screen shot attached and explained here
Screenshot 2023-06-15 111328.gif
Managing Custom dimensions in app insights configured for APIM.
Bhargav Pasarla
120
Reputation points
When we add a header at APIM Policy and mention the same header at APIM diagnostic setting in frontend request, frontend response, backend request and backend response for all apis,
but it is not logging to APIM app insights under custom dimensions.
If the header is included at client side then it is logging under apim insights.
1 answer
Sort by: Most helpful
-
Ben Gimblett 4,545 Reputation points Microsoft Employee
2023-06-15T10:16:00.0333333+00:00