-
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
BatchSpanProcessor error when running on Next.js instrumentation #1383
Comments
Thanks @hectorhdzg, I passed this to the team and asked them to enable the debug logs. Once we have the information me or someone from the team will post it here! |
Hi @hectorhdzg, sorry for taking too long, I'm attaching the CSV with the logs where the issue is happening (if you search for BatchSpanprocessor you can find it). From what I saw briefly, it's related to ContextTagKeys being too long. Also, not sure if it's related to this, but when we did some load testing with the AppInsights turned on, our application memory usage sky-rocketed and it crashed after some time due to memory heap. We even bumped the memory to 28GB thinking it was because of the memory we needed and still continued to rump it up and it crashed, but as soon we turned AppInsights off the memory usage didn't go up at all. |
@lapa182 error will be fixed next release, for performance issue, can you add more details about your app and initialization of the SDK?, @JacksonWeber we may need to add the scenario in our perf tests |
Sure. We are using: Node.js: 22.9.0 Here's a screenshot of the memory usage example, which we run using Load Testing from Azure with 50 users accessing simultaneously 22 pages: Example of the log of heap memory: This was the pattern which triggered our investigation to do the load testing: The way we currently load AppInsights is using the
And the
We then load inside AppInsightsProvider as the following:
And load in the
For context, we were following this implementation: https://github.com/CMeeg/nextjs-aca cc @Adonas-B |
…31283) ### Packages impacted by this PR @azure/monitor-opentelemetry-exporter ### Issues associated with this PR microsoft/ApplicationInsights-node.js#1383 (comment)
Hello, same issue here. Any plans to release a fix? |
Hello, we are seeing a number of errors on the console (please see below):
This is the latest applicationinsights package version (3.2.2) with Next.js 14.2.9 loaded in the instrumentation.
The text was updated successfully, but these errors were encountered: