ApplicationInsights-node.js: [Beta] Error that @azure/core-tracing is loaded before @azure/opentelemetry-instrumentation-azure-sdk

Hello,

I’m using the latest beta-version of this package, however, on startup, I’m getting the following error:

ApplicationInsights:@azure/opentelemetry-instrumentation-azure-sdk [
  'Module @azure/core-tracing has been loaded before @azure/opentelemetry-instrumentation-azure-sdk so it might not work, please initialize it before requiring @azure/core-tracing'
]

I don’t have those packages as a dependency, and I don’t import/require them anywhere, so I guess the error originates from this package. Is this a bug?

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 15
  • Comments: 16 (6 by maintainers)

Most upvoted comments

This is not an error just a warning, Azure SDK auto instrumentation should be functional even if the warning is triggered, please ignore for now, this warning would be gone once we add a LogExporter and remove internal @azure package dependencies in this project