- Node.js version 12 or newer
- An app to add OpenTelemetry to
To install OpenTelemetry, we recommend LightStep's handy OTel-Launcher, which simplifies the process.
We shall use OTLP HTTP exporter to send data to SigNoz
Once you've downloaded the launcher, you can run OpenTelemetry using the following basic configuration.
- Self Hosted
You will find the access token in your settings page as shown in below image
Set an environment variable to run the OpenTelemetry launcher in debug mode, where it logs details about the configuration and emitted spans:
The output may be very verbose with some benign errors. Early in the console output, look for logs about the configuration and check that your access token is correct. Next, look for lines like the ones below, which are emitted when spans are emitted to SigNoz.
Running short applications (Lambda/Serverless/etc) If your application exits quickly after startup, you may need to explicitly shutdown the tracer to ensure that all spans are flushed: