question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatically tracked dependencies are tracked _twice_ from time to time

See original GitHub issue

👋,

We’re building a product which acts as a reverse proxy and relays incoming requests to remote backends. Everything is instrumented through ApplicationInsights SDK for Nodejs (https://github.com/microsoft/ApplicationInsights-node.js).

We’ve just discovered a weird behavior. While analyzing the telemetry stored in ApplicationInsights, for a very small percentage (0.07%) of the traffic, it looks like the calls to the backends are tracked twice.

When that happens, the vast majority of this duplicate tracks shows one successful dependency call, and one failed dependency call. However, one can also find entries with two successful dependency calls or two failed ones.

Those duplicate entries bear the same dependency.timestamp, dependency.id, … but usually their duration differs by few milliseconds.

Although the numbers seem low, this is quite annoying from a monitoring standpoint (false positives, …).

Unfortunately, we haven’t been unable to create a small scale repro case.

How can we proceed further? Would it be possible to set up a screen sharing session so that we could demonstrate the finding?

In order to help move the ball further, below are three “proofs” of those behaviors, extracted from our ApplicationInsights instance. Some of the data has been redacted, it should help share what we actually encounter.

2.failed.dependencies.txt 2.successful.dependencies.txt 1.fail.and.1.successful.dependencies.txt

/cc @hectorhdzg

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nulltokencommented, Nov 7, 2022

@hectorhdzg Just confirmed that the change fixed our duplicate issue as well.

Tons of thanks !

❤️

1reaction
nulltokencommented, Sep 23, 2022

@hectorhdzg Sorry for the delay. I’ve completely missed your message from March, 15th. I’ll come back to you in the following days with some answers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate telemetry (request, traces and dependencies ) #721
2. yes I am using automatic tracking and correlations. ... dependency and request all type logs twice, some times comosdb sdk logs
Read more >
Dependency tracking in Application Insights - Azure Monitor
Monitor dependency calls from your on-premises or Azure web application with Application Insights.
Read more >
Directly referencing ApplicationInsights in Azure Functions ...
I have an Azure Functions v3 project running .NET Core 3.1 configured with Application Insights that does not track SQL dependencies ...
Read more >
How dependency tracking works - Knockout.js
Controlling dependencies using peek​​ Knockout's automatic dependency tracking normally does exactly what you want. But you might sometimes need to control which ...
Read more >
Solving common problems - Gradle User Manual
Most times it makes sense to track the file or the contents of the ... will be tracked automatically as an input for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found