SigNoz Cloud - This page is relevant for SigNoz Cloud editions.
Self-Host - This page is relevant for self-hosted SigNoz editions.

Selective Auto-Instrumentation

Auto-instrumentation enables many libraries by default. Use environment variables or code to enable only what you need.

Prerequisites

Configure selective instrumentation

No code changes required. Configure using environment variables.

Enable or disable specific libraries

# Enable only HTTP and Express
export OTEL_NODE_ENABLED_INSTRUMENTATIONS="http,express"

# Disable file system and gRPC
export OTEL_NODE_DISABLED_INSTRUMENTATIONS="fs,grpc"

Use library names without the @opentelemetry/instrumentation- prefix. See the full list of supported libraries.

📝 Note

If both variables are set, OTEL_NODE_ENABLED_INSTRUMENTATIONS applies first, then OTEL_NODE_DISABLED_INSTRUMENTATIONS. A library in both lists will be disabled.

Run your application

export OTEL_TRACES_EXPORTER="otlp"
export OTEL_EXPORTER_OTLP_ENDPOINT="https://ingest.<region>.signoz.cloud:443"
export OTEL_EXPORTER_OTLP_HEADERS="signoz-ingestion-key=<your-ingestion-key>"
export OTEL_SERVICE_NAME="<service-name>"
export OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
export OTEL_NODE_ENABLED_INSTRUMENTATIONS="http,express"
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
node app.js

Replace <region>, <your-ingestion-key>, and <service-name> with your values.

📝 Note

Environment variables only work with no-code auto-instrumentation (NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"). For code-based setup, use the Code-based tab.

Validate

Enable debug logging to verify which instrumentations are active:

export OTEL_LOG_LEVEL=debug

Check the output for lines showing which instrumentations loaded.

Troubleshooting

No traces appearing in SigNoz

  • Verify OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_EXPORTER_OTLP_HEADERS are set correctly.
  • Check network connectivity to the SigNoz endpoint.

Missing or incomplete spans

  • Confirm the instrumentation library is enabled via OTEL_NODE_ENABLED_INSTRUMENTATIONS.
  • For no-code setup, ensure NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register" is set.

Invalid ingestion key

  • Format should be: signoz-ingestion-key=<your-ingestion-key>
  • Check for extra spaces or quotes.

Next steps

If you need help with the steps in this topic, please reach out to us on SigNoz Community Slack.

If you are a SigNoz Cloud user, please use in product chat support located at the bottom right corner of your SigNoz instance or contact us at cloud-support@signoz.io.

Last updated: January 14, 2026

Edit on GitHub

Was this page helpful?