-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Too much traces /track
being sent
#1339
Comments
@lapa182 Can you provide some further details here? Are you seeing duplicated traces? Or do you just want to see fewer traces in general based on some kind of criteria? Also, what version of the SDK are you using/did you recently upgrade before seeing this spike? |
Hi @JacksonWeber, sorry for the delay was trying to get some information as we had to disable AppInsights in our instance because our logging was ramping up our costs. I got a screenshot of the "issue": This is a dev instance and you can see that every minute (sometimes less than a minute) we had one track event from For context, we are using Next.js 14 and we are loading the instrumentation with this code:
We were using this implementation before https://github.com/CMeeg/nextjs-aca/blob/main/src/lib/instrumentation/azure-monitor.ts, which was still in beta and when the SDK came out of beta we decided to update the code (we are on 3.1.0 now). Is there a way to disable capturing Not sure if it's related as well, but we are using Log Analytics in App Insights. |
@lapa182 I tried to reproduce with no success using Next.js, are you calling setup and start in Application Insights multiple times in your Node.js process?, what you are experiencing is not a common thing, you can always explicitly remove these extra dependencies using HTTP OpenTelemetry Instrumentation that is being used internally to generate the telemetry configuring [ignoreOutgoingRequestHook] |
Hello! We recently noticed a spike in our Next.js application of traces coming from
/track
. I was googling about it and saw this Github issue in another SDK (microsoft/ApplicationInsights-Python#317).Do you know how I could achieve the same in the Node SDK?
The text was updated successfully, but these errors were encountered: