Skip to content

@azure/monitor-opentelemetry NodeJS Library Only Supports Node 18+; Docs Suggest Minimum Node Version is 14 #30217

Closed

Description

  • Package Name: @azure/monitor-opentelemetry
  • Package Version: v1.6.0
  • Operating system: BrightSign OS (offshoot Linux of some sort)
  • nodejs
    • version: 14.7
  • browser
    • name/version: Chromium (Unknown Version)
  • typescript
    • version: 5.5.2
  • Is the bug related to documentation in

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:

[ 33.125] [ERROR] [source internal/modules/cjs/loader.js:899]: Uncaught Error: Cannot find module 'node:os'

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:

  1. install node 14
  2. Read the prerequisites in the [Get Started Guide](Get Started
  3. create stub project following the steps in the Get Started guide, including starting the Azure monitor code.

Expected behavior
Node App runs.

Screenshots
image

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 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.MonitorMonitor, Monitor Ingestion, Monitor Querycustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions