clarification regarding ApiManagementGatewayLogs log table fields

MuhamedSalihSI 71 Reputation points
2021-01-13T10:39:10.257+00:00

I am having following doubts in ApiManagementGatewayLogs under log analytics:

In ApiManagementGatewayLogs what is actually TotalTime, BackendTime and Client Time which is captured? (https://learn.microsoft.com/en-us/azure/api-management/gateway-log-schema-reference) 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,960 questions
0 comments No comments
{count} votes

Accepted answer
  1. Krish G 2,331 Reputation points
    2021-01-16T08:22:21.663+00:00

    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.

    57204-image.png

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful