clarification regarding ApiManagementGatewayLogs log table fields

MuhamedSalihSI 71 Reputation points

I am having following doubts in ApiManagementGatewayLogs under log analytics:

In ApiManagementGatewayLogs what is actually TotalTime, BackendTime and Client Time which is captured? ( I got some reference from this link but still its not clear and we can't understand relation between the numbers captured in it)

In ApiManagementGatewayLogs the correlationId is captured, but its random GUID always. How to control the correlation ID we are using trace parent or request Id headers but the correlationId captured is always found different?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,795 questions
0 comments No comments
{count} votes

Accepted answer
  1. Krish G 2,326 Reputation points

    For the first part of the question,
    TotalTime: Time spent for an API request end to end at APIM side.
    BackendTime: Time spent for the roundtrip call to your backend for the API (includes the time taken by your backend API server).
    ClientTime: Time spent on the request for client operations i.e. client http request receive and response send. NOTE: It may not get logged always.
    Ideally, TotalTime = BackendTime + ClientTime + Time required for other processing e.g. APIM policy execution etc..

    Please feel free to clarify if the above still not clear or you are looking for something else.

    For the next part of the question regarding 'CorrelationId' in ApiManagementGatewayLogs, it's APIM diagnostics logs and unfortunately, which does not infer it from http header like Request-Id or traceparent (W3C standard). Alternatively, you may want to look at Integrating Azure API Management with Azure Application Insights which supports Telemetry Correlation from http headers.


    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful