Conversation
|
Also see README.md in this branch: This is an ESM version of the OTel node function, that fails to report outgoing spans in Azure monitor |
|
@RohitRanjanMS Hello Rohit, thank you for taking this forward. I was wondering if the node language worker team were able to have a look at this? |
|
Hi @wboumans , I reached out to the Azure Monitor team, and they said that they have an ESM updated release coming soon, but it should be possible to collect telemetry if you follow the steps here opentelemetry-js/doc/esm-support.md at main · open-telemetry/opentelemetry-js since OpenTelemetry doesn't work with ESM out-of-the-box period. |
|
Hi @wboumans , following up on this, were you able to make it work? |
|
@RohitRanjanMS sorry about the delay, I was off for a few days. We got something working (at least from the function on local) using this approach:
Further testing needs to be done, but I suspect that indeed ESM module loading is causing the issue here. I'll continue on Tuesday (Fr/Mo are public holidays in the UK) |
No description provided.