Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@opentelemetry/auto-instrumentations-node

Latest version: v0.84.1

Overview

Last scanned
3 Dec 2026
Published
3 Dec 2026
npm package Publisher: dyladan, martinkuba, npmjs-account, overbalance, pichlermarc, trentm
949 Stars
757 Forks
7 Versions
46.9M Downloads
TypeScript Repo language

Scan summary

@opentelemetry/auto-instrumentations-node was last scanned on 3 Dec 2026 at version 0.84.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest was published on 3 Dec 2026.
  • Findings: No rules fired in version 0.84.1.
  • Downloads: 46,851,062 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.84.1 LATEST 3 Dec 2026 No rules fired
0.83.1 12 Nov 2026 No rules fired
0.83.0 5 Nov 2026 No rules fired
0.81.2 16 Oct 2026 Not shown
0.81.1 15 Oct 2026 Not shown

No rules fired in 0.84.1

Findings

Findings for v0.84.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.84.1; other versions have their own rules, not their own score.

Known vulnerabilities

1 CVE · last 27 May 2026

0 CRITICAL 1 HIGH 0 MEDIUM 0 LOW

Versions

  • ≥ 0.75.0
  • ≥ 0.55.0, < 0.75.0 1 HIGH
  • < 0.55.0

Vulnerabilities

  • CVE-2026-44902 High 27 May 2026 opentelemetry-js: opentelemetry/exporter-prometheus: opentelemetry-js: Denial of Service via malformed HTTP request Fixed in 0.75.0

README

The publisher’s own README, as collected from the registry.

OpenTelemetry Meta Packages for Node

NPM Published Version Apache License

About

This module provides a way to auto instrument any Node application to capture telemetry from a number of popular libraries and frameworks. You can export the telemetry data in a variety of formats. Exporters, samplers, and more can be configured via environment variables. The net result is the ability to gather telemetry data from a Node application without any code changes.

This module also provides a simple way to manually initialize multiple Node instrumentations for use with the OpenTelemetry SDK.

Compatible with OpenTelemetry JS API and SDK 2.0+.

Installation

npm install --save @opentelemetry/api
npm install --save @opentelemetry/auto-instrumentations-node

Usage: Auto Instrumentation

This module includes auto instrumentation for all supported instrumentations and all available data exporters. It provides a completely automatic, out-of-the-box experience. Please see the Supported Instrumentations section for more information.

Enable auto instrumentation by requiring this module using the --require flag:

node --require '@opentelemetry/auto-instrumentations-node/register' app.js

If your Node application is encapsulated in a complex run script, you can also set it via an environment variable before running Node.

env NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"

The module is highly configurable using environment variables. Many aspects of the auto instrumentation's behavior can be configured for your needs, such as resource detectors, exporter choice, exporter configuration, trace context propagation headers, and much more. Instrumentation configuration is not yet supported through environment variables. Users that require instrumentation configuration must initialize OpenTelemetry programmatically.

export OTEL_TRACES_EXPORTER="otlp"
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
export OTEL_EXPORTER_OTLP_COMPRESSION="gzip"
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="https://your-endpoint"
export OTEL_EXPORTER_OTLP_HEADERS="x-api-key=your-api-key"
export OTEL_EXPORTER_OTLP_TRACES_HEADERS="x-api-key=your-api-key"
export OTEL_RESOURCE_ATTRIBUTES="service.namespace=my-namespace"
export OTEL_NODE_RESOURCE_DETECTORS="host,os,serviceinstance,env"
export OTEL_SERVICE_NAME="client"
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
node app.js

By default, all SDK resource detectors are used, but you can use the environment variable OTEL_NODE_RESOURCE_DETECTORS to enable only certain detectors, or completely disable them:

  • env
  • host
  • os
  • process
  • serviceinstance
  • container
  • alibaba
  • aws
  • azure
  • gcp
  • all - enable all resource detectors
  • none - disable resource detection

For example, to enable only the env, host detectors:

export OTEL_NODE_RESOURCE_DETECTORS="host,env"

NOTE: The order set on OTEL_NODE_RESOURCE_DETECTORS will be respected and the detectors will be executed in order. For example, if you have OTEL_RESOURCE_ATTRIBUTES="service.instance.id=custom-name", but also serviceinstance and env on OTEL_NODE_RESOURCE_DETECTORS, it can have 2 scenarios:

  • OTEL_NODE_RESOURCE_DETECTORS="serviceinstance,env" will have the service.instance.id as custom-name
  • OTEL_NODE_RESOURCE_DETECTORS="env,serviceinstance" will have the service.instance.id as a random UUID

By default, all Supported Instrumentations are enabled, unless they are annotated with "default disabled". You can use the environment variable OTEL_NODE_ENABLED_INSTRUMENTATIONS to enable only certain instrumentations, including "default disabled" ones OR the environment variable OTEL_NODE_DISABLED_INSTRUMENTATIONS to disable only certain instrumentations, by providing a comma-separated list of the instrumentation package names without the @opentelemetry/instrumentation- prefix.

For example, to enable only @opentelemetry/instrumentation-http and @opentelemetry/instrumentation-nestjs-core instrumentations:

export OTEL_NODE_ENABLED_INSTRUMENTATIONS="http,nestjs-core"

To disable only @opentelemetry/instrumentation-net:

export OTEL_NODE_DISABLED_INSTRUMENTATIONS="net"

If both environment variables are set, OTEL_NODE_ENABLED_INSTRUMENTATIONS is applied first, and then OTEL_NODE_DISABLED_INSTRUMENTATIONS is applied to that list. Therefore, if the same instrumentation is included in both lists, that instrumentation will be disabled.

To enable logging for troubleshooting, set the log level by setting the OTEL_LOG_LEVEL environment variable to one of the following:

  • none
  • error
  • warn
  • info
  • debug
  • verbose
  • all

The default level is info.

Notes:

  • In a production environment, it is recommended to set OTEL_LOG_LEVELto info.
  • Logs are always sent to console, no matter the environment, or debug level.
  • Debug logs are extremely verbose. Enable debug logging only when needed. Debug logging negatively impacts the performance of your application.

Usage: Instrumentation Initialization

OpenTelemetry Meta Packages for Node automatically loads instrumentations for Node builtin modules and common packages.

Custom configuration for each of the instrumentations can be passed to the function, by providing an object with the name of the instrumentation as a key, and its configuration as the value.

const { NodeSDK } = require('@opentelemetry/sdk-node');
const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-node');

const sdk = new NodeSDK({
  serviceName: 'my-service',
  instrumentations: [
    getNodeAutoInstrumentations({
      // Optionally customize some instrumentations, e.g.:
      '@opentelemetry/instrumentation-http': {
        applyCustomAttributesOnSpan: (span) => {
          span.setAttribute('foo2', 'bar2');
        },
      },
    }),
  ],
});
sdk.start();
process.once('beforeExit', async () => { await sdk.shutdown(); });

Supported instrumentations

Removed instrumentations

Useful links

License

APACHE 2.0 - See LICENSE for more information.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @opentelemetry/auto-instrumentations-node

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229