OpenTelemetry JS supports various runtimes with the following considerations:
Node.js
Only Node.js Active or Maintenance LTS versions are supported. Previous versions may work but are not tested or guaranteed.
Web Browsers
Client instrumentation for the browser is currently experimental and unspecified.
OpenTelemetry sets minimum support based on language features. The current minimum is ECMAScript 2022. If you target environments that do not support ES2022, you must transpile the code and provide necessary polyfills. Support issues for environments lacking ES2022 support will be closed as "won't fix."
TypeScript
OpenTelemetry JS is built with TypeScript v5.2.2. It is recommended to use version v5.2.2 or higher for your projects. Support for older TypeScript versions follows the DefinitelyTyped support policy (2-year window).