-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@azure/monitor-opentelemetry
NodeJS Library Only Supports Node 18+; Docs Suggest Minimum Node Version is 14
#30217
Comments
@epicstar thank you for reporting this issue! Unfortunately the latest versions of our Azure SDK packages only support NodeJS v18 and later. We encourage customers to upgrade to at least v18 as there are vulnerabitlity in NodeJS v16 that won't be fixed. |
Thank you. Here's another instance of confusing NodeJS version support in the documentation:
|
@azure/monitor-opentelemetry
NodeJS Library Only Supports Node 16+; Docs Suggest Minimum Node Version is 14@azure/monitor-opentelemetry
NodeJS Library Only Supports Node 18+; Docs Suggest Minimum Node Version is 14
`` |
@epicstar Azure Monitor OpenTelemetry package rely on both Azure SDK and OpenTelemetry dependencies, that is why we mention both in our official docs, right now OpenTelemetry supports older versions of the runtime comparing to Azure SDK, but that could change, maybe we can add more explicit message saying that the supported runtime is where both dependencies are satisfied. Migration docs you shared are outdated and I will make sure these are up to date, I would recommend you take a look at Application Insights SDK v2 for older Node.js runtime support. |
I've tried 2.9.5 and got the same |
I couldn't find a version of application insights v2 that supported Node 14. I went down to 2.4.2 with the same |
would pinning transitive dependencies helps? Not that we want customers to continute working on unsecured version of Nodejs, but something like
|
@epicstar like @jeremymeng mentioned pinning the dependencies may help, @azure/core-auth is also a dependency in Application Insights v2 that is causing the issue, I will update Application Insights to support older versions of Node.js as you noticed is a bug in our side, at least in Application insights v2 side of things, automatic dependency updates broke this most likely, but you will not be able to use AAD feature in the SDK, if you need the feature you will need to update to newer runtimes, I will make sure this is reflected in docs as well. |
Closing as this is resolved in @azure/monitor-opentelemetry v1.7.0. |
Describe the bug
@azure/monitor-opentelemetry v1.6.0 seems to only run on NodeJS 18+, when the opentelemetry-js supports up to 14+.
The Get Started implies you support Node 14.
This is the error I get when running my project running on Node 14.7:
The readme in @azure/monitor-opentelemetry suggests you guys support the latest list of LTS versions, which the minimum is Node 16 (where the
node:os
module started). However, opentelemetry-js supports 14+ which you call out in your Get Started guide. So I was assuming that your lib supported Node 14+ also.So it's either that you support the NodeJS version that OpenTelemetry minimally supports supports, or you openly state you support up to Node LTS versions (18 atm) in the Get Started guide.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Node App runs.
Screenshots
Prerequisites from the page:
opentelemetry-js
Additional context
I wish I could update to the latest LTS version of NodeJS, but we're bound by what BrightSign installs on their players :(
The text was updated successfully, but these errors were encountered: