Azure insights trackEvent function is reporting duplicate events.

Ashish Bhatt 1 Reputation point
2022-01-21T16:25:48.45+00:00

Hello,

we have implemented Azure insights in our angular application.
Sometimes trackEvent function is reporting single event multiple times.
I just want to know, is there any case/scenario when azure insights could send duplicates event data ?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,858 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 12,041 Reputation points
    2022-02-07T14:48:58.35+00:00

    @Ashish Bhatt - Thanks for reaching out to us and Welcome to Microsoft Q&A.

    Apologies for the delay in responding to your questions.

    The only time Application Insights will send and "event" payload more than once is if the request to send the batched events fails, at which time it will "retry" the payload and resend the entire batch events (not just the values from trackEvent.

    This can be disabled during initialization with the isRetryDisabled config settings.

    Hope this helps.

    ---------------------------------------

    If the above response helped, please feel free to "Accept as Answer" and "upvote" so it can be beneficial to the community.

    1 person found this answer helpful.
    0 comments No comments