-
Notifications
You must be signed in to change notification settings - Fork 145
Description
While upgrading from version 2.9.0 to 3.6.0 of the Application Insights library, we encountered an issue where requests are no longer being sent to Application Insights.
Expected Behavior: Requests should appear in Application Insights as they did with version 2.9.0.
Actual Behavior: Requests do not appear in Application Insights when using version 3.x.
The app is
https://github.com/mspnp/fabrikam-dronedelivery-workload/blob/main/src/shipping/package/package.json
Runing with Node 18.9.1
the app insight initialization is
https://github.com/mspnp/fabrikam-dronedelivery-workload/blob/main/src/shipping/package/app/initializer.ts
Error Logs: Running in debugger mode locally, the following error was observed (may be related to the issue):
Runing in debugger mode locally we found the error (may be related to the issue or not):
{"stack":"Error: PeriodicExportingMetricReader: metrics export failed (error undefined)\n at PeriodicExportingMetricReader._doRun (C:\\tbd\\container-apps-fabrikam-dronedelivery\\workload\\src\\shipping\\package\\node_modules\\@opentelemetry\\sdk-metrics\\build\\src\\export\\PeriodicExportingMetricReader.js:86:19)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async PeriodicExportingMetricReader._runOnce (C:\\tbd\\container-apps-fabrikam-dronedelivery\\workload\\src\\shipping\\package\\node_modules\\@opentelemetry\\sdk-metrics\\build\\src\\export\\PeriodicExportingMetricReader.js:54:13)","message":"PeriodicExportingMetricReader: metrics export failed (error undefined)","name":"Error"} []
Additional Information:
Main documentation: Azure Monitor Application Insights for Node.js
Library: Application Insights on npm
Request for Assistance: I believe this issue may be related to the library itself, but I am unable to confirm. Any guidance or solutions would be greatly appreciated.