Duplicate telemetry in app insights with no diagnostics workplace settings configured

Isaiah Kim 20 Reputation points
2023-12-06T20:22:30.4633333+00:00

We have application insights setup and configured for an Angular application. Depending on how many times telemetry is logged in a session, we are seeing logs duplicated that many times (something like that, it's not always consistent). Here are 2 traces that are being duplicated 10 times each. We confirmed on the front end that each trace is only being created once. As more telemetry is logged in the same session, all previous logs get duplicated again.

Screenshot 2023-12-06 at 3.18.43 PM

A common solution I've seen is to delete the diagnostics settings but we have none configured:Screenshot 2023-12-06 at 3.14.43 PM

Any solutions?

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,419 questions
0 comments No comments
{count} votes

Accepted answer
  1. Monalla-MSFT 13,046 Reputation points
    2023-12-11T20:31:19.0666667+00:00

    @Isaiah Kim - Welcome to Microsoft Q&A and thanks for reaching out to us.

    It might be possible that the logs are being sent multiple times from the client-side application. Some of the scenarios can be as below:

    1. Multiple instances of the Application Insights JavaScript SDK are being loaded on the page. Please ensure that the SDK is only included once on the page and that the page is not being loaded multiple times.
    2. The SDK is being initialized multiple times on the page, or its being used in multiple iFrames on the page.

    To troubleshoot this issue, you can use the Application Insights Analytics feature to query the telemetry data and look for patterns in the duplicated logs. You can also use the browser developer tools to inspect the network traffic and see if the logs are being sent multiple times from the client-side application.

    Hope this helps. and please feel free to reach out if you have any further questions.


    If the above response was helpful, please feel free to "Accept as Answer" and click "Yes" so it can be beneficial to the community.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most 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.