Azure Functions中ApplicationInsights上下文传播失败问题求助
Azure Functions中ApplicationInsights上下文传播失败问题求助
最近在Azure Function App里碰到个棘手的问题——不管是部署到云端环境,还是本地用模拟器运行,都会触发同一个错误:
ApplicationInsights:Failed to propagate context in Azure Functions TypeError: Cannot read properties of null (reading 'customProperties') at AzureFunctionsHook.<anonymous> (...\node_modules\applicationinsights\out\AutoCollection\AzureFunctionsHook.js:84:42) at step (...\node_modules\applicationinsights\out\AutoCollection\AzureFunctionsHook.js:33:23) at Object.next (...\node_modules\applicationinsights\out\AutoCollection\AzureFunctionsHook.js:14:53) at ...\node_modules\applicationinsights\out\AutoCollection\AzureFunctionsHook.js:8:71 at new Promise (<anonymous>) at __awaiter (...\node_modules\applicationinsights\out\AutoCollection\AzureFunctionsHook.js:4:12) at ...\node_modules\applicationinsights\out\AutoCollection\AzureFunctionsHook.js:78:136 at t.WorkerChannel.<anonymous> (...\AppData\Roaming\nvm\v18.14.1\node_modules\azure-functions-core-tools\bin\workers\node\dist\src\worker-bundle.js:2:16100) at Generator.next (<anonymous>) at ...\AppData\Roaming\nvm\v18.14.1\node_modules\azure-functions-core-tools\bin\workers\node\dist\src\worker-bundle.js:2:14637
目前的情况是,没有任何额外的追踪信息可以排查,而且这些异常还不会显示在Application Insights的日志查询界面里。
有没有朋友遇到过类似的问题,能给点解决思路或者建议吗?
备注:内容来源于stack exchange,提问作者WillD
相关产品推荐
相关产品推荐

