APIM expose W3C tracing trace-id parent-id for get/set

Edwin van de Burgt 91 Reputation points
2021-09-15T16:03:04.133+00:00

When there is no incoming traceparent header, APIM generates an traceparent for the backend calls, when using the W3C correlation protocol.

At least read-access to this APIM-generated traceparent (or specifically its trace-id and parent-id) is required, so e.g. you can include a traceparent in a send-request, but this doesn't seem possible.

Unfortunately, the traceparent's trace-id does not match the context.RequestId either.

Please expose the traceparent, preferable through the APIM context object.

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