Get up and running with OpenTelemetry in just a few quick steps! The setup process consists of two phases--getting OpenTelemetry installed and configured, and then validating that configuration to ensure that data is being sent as expected. This guide explains how to download, install, and run OpenTelemetry in Java.
We follow OpenTelemetry java instrumentation library. We shall be exporting data in OTLP format.
Download the latest version.
This package includes the instrumentation agent as well as instrumentations for all supported libraries and all available data exporters. The package provides a completely automatic, out-of-the-box experience.
Enable the instrumentation agent using the -javaagent flag to the JVM.
- Self Hosted
where <app_name> is the name you want to set for your application
Remember to allow incoming requests to port 4317 of machine where SigNoz backend is hosted
<app_name> is the name you want to set for your application
<access_token> can be found in your settings page as shown in below image
If spans are not being reported to SigNoz, try running in debug mode by setting
The debug log level will print out the configuration information. It will also emit every span to the console, which should look something like: