Open alexgagnon opened 5 months ago
@alexgagnon I've recreated an application using the reproduction steps detailed in your issue (including the tsconfig.json) and I don't appear to have any errors thrown. Could you give this a try with the latest version of the @azure/monitor-opentelemetry package?
Describe the bug In a project using ESM ("type": "module") it seems like @azure/monitor-opentelemetry incorrectly references the underlying @opentelemetry/resource library, giving the following error:
To Reproduce Steps to reproduce the behavior:
Expected behavior It works and starts sending data to the insights resource indicated in the APPLICATIONINSIGHTS_CONNECTION_STRING env var
Additional context
Here's my tsconfig.json file if that helps