ApplicationInsights crashes on the container start with the ((TypeError: api_1.createContextKey is not a function)) excption
See original GitHub issueour setup
- Azure App Service
- Docker
- node:10.16.0
- we use ssh inside docker
- we are trying to telemetry node.js api with ApplicationInsights-node_
when we did everything locally following by this instruction _https://docs.microsoft.com/en-us/azure/azure-monitor/app/nodejs_
- we could see all telemetry on the app insight portal in the azure portal tab.
- but when we started trying to deploy that solution to the dev stand we have got problems.
-
First our build pipeline started crashing. I fixed it by updating the typescript version in our package.json. It was some 3rd version, I replaced it with 4.1.2 and reinstall node_modules. Build became successful.
-
But now our node application crashing with the node js exception after each attempt to start the container inside of the azure web app
-
Somewhere I read what it could be somehow connected to the other azure npm modules we use, here are the list:
“@azure/storage-queue”: “^12.4.0”, “azure-storage”: “^2.10.4”, -
here is an exception:
2022-02-01T12:47:57.908240807Z TypeError: api_1.createContextKey is not a function 2022-02-01T12:47:57.908266308Z at Object.anonymous (/airofit-api/node_modules/@opentelemetry/core/build/src/trace/suppress-tracing.js:20:36) 2022-02-01T12:47:57.908273008Z at Module._compile (internal/modules/cjs/loader.js:776:30) 2022-02-01T12:47:57.908276609Z at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) 2022-02-01T12:47:57.908280109Z at Module.load (internal/modules/cjs/loader.js:653:32) 2022-02-01T12:47:57.908289309Z at tryModuleLoad (internal/modules/cjs/loader.js:593:12) 2022-02-01T12:47:57.908292609Z at Function.Module._load (internal/modules/cjs/loader.js:585:3) 2022-02-01T12:47:57.908295909Z at Module.require (internal/modules/cjs/loader.js:690:17) 2022-02-01T12:47:57.908299610Z at Module.patchedRequire [as require] (/airofit-api/node_modules/diagnostic-channel/dist/src/patchRequire.js:15:46) 2022-02-01T12:47:57.908303210Z at require (internal/modules/cjs/helpers.js:25:18) 2022-02-01T12:47:57.908306510Z at Object.anonymous (/airofit-api/node_modules/@opentelemetry/core/build/src/baggage/propagation/HttpBaggagePropagator.js:20:28)
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
I had a similar issue. The solution here resolved my issue. I updated the version of @azure/storage-blob and that did the trick.
Hey @eeropenttinen, thank you so much! I will definitely try it!!!