Managing Custom dimensions in app insights configured for APIM.

Bhargav Pasarla 120 Reputation points
2023-06-14T13:41:31.7166667+00:00

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.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,469 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,294 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ben Gimblett 4,545 Reputation points Microsoft Employee
    2023-06-15T10:16:00.0333333+00:00

    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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.