end-to-end transaction details shows telemetry data of the same level in wrong order

Gallatin 21V 266 Reputation points
2025-08-21T06:40:00.7633333+00:00

I'm inquiring a issue related to Application Insights, but no Application Insights child tag could be seen, as my workflow has things to do with APIM, so I selected APIM.

I noticed telemetry data of the same level are rendered in wrong order on end-to-end transaction details page, I've added some screenshots for a better understanding, if telemetry data is needed for the investigation, pls kindly feel free to let me know. so we wanted to know why they didn't sort in chronological order? if there's a way to make sure the data of the same level can be listed in chronological order? thank you very much.

User's image

User's image

User's image

Cloud: Azure China.

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

1 answer

Sort by: Most helpful
  1. Sina Salam 23,931 Reputation points Volunteer Moderator
    2025-08-21T14:35:01.63+00:00

    Hello Gallatin 21V,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that the end-to-end transaction details shows telemetry data of the same level in wrong order.

    You can resolve this by the followings:

    Use KQL logs instead of relying on the UI:

    traces
    | where operation_Id == "<your-operation-id>"
    | order by timestamp asc
    

    This guarantees chronological order regardless of UI rendering - https://learn.microsoft.com/en-us/azure/azure-monitor/app/distributed-trace-data

    Ensure Proper APIM Integration by follow this guide - https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-app-insights you can make sure there is proper APIM Integration.

    You can disable adaptive sampling if using .NET Core SDK, set these environment variables:

    APPLICATIONINSIGHTS_ENABLEADAPTIVESAMPLING=false
    MicrosoftAppInsights_AdaptiveSamplingTelemetryProcessor_MinSamplingPercentage=100
    MicrosoftAppInsights_AdaptiveSamplingTelemetryProcessor_InitialSamplingPercentage=100
    

    But:

    • Your SDK version must support these variables.
    • App must restarted after setting them
    • If using legacy SDK, these variables won’t work. You must disable sampling in code:
    var aiOptions = new ApplicationInsightsServiceOptions();
    aiOptions.EnableAdaptiveSampling = false;
    services.AddApplicationInsightsTelemetry(aiOptions);
    

    Finally, validate correlation setup to ensure each telemetry item sets:

    I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.


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.