OpenTelemetry Integration
The Steadybit agent and extensions are instrumented with OpenTelemetry. Once you point them at your own OTLP endpoint, every experiment run produces distributed traces in your tracing backend, such as Grafana Tempo, Jaeger, Zipkin, or Datadog. Here are some scenarios in which this data helps:
Your organization is evaluating Steadybit, and you want to understand what is happening during experiments, including the nitty-gritty details.
You are developing an extension, and something went wrong. You want to know precisely how your extension was called, the parameters, and how it responded.
You want to correlate experiment runs with your other monitoring and observability data.
Something went wrong, and you need help from Steadybit's support staff to resolve the situation. Share the run's trace to give them context.
Steadybit does not store traces itself: they go only to the backend you configure.

Find a Run's Traces
Every span of an experiment run carries an experiment.execution.id attribute holding the run's ID. The Tracing tab of the experiment run view shows that ID together with ready-to-copy queries for common backends:
Grafana Tempo (TraceQL)
{ span.experiment.execution.id = "<id>" }
Jaeger (tag)
experiment.execution.id=<id>
Datadog
@experiment.execution.id:<id>
Tracing backends search a time window rather than all history, so make sure the window covers the run. A matching span belongs to a trace that spans the agent and the extensions it called, so opening any result shows the whole call, including what happened inside the extension.
Export OpenTelemetry Data
Tracing is off by default. Each component exports on its own, configured through the standard OpenTelemetry environment variables, so enable it for the agent and for every extension whose spans you want to see.
Agent Configuration
The Steadybit agent uses the OpenTelemetry SDK auto-configuration module, so all of its configuration parameters are supported. Setting OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED=true switches tracing on. Without it, the agent records nothing but still passes the trace context on to the extensions it calls.
When you install the agent with the steadybit-agent Helm chart, pass the same variables through agent.env:
To switch tracing off again, remove OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED or set OTEL_SDK_DISABLED=true.
Extension Configuration
Extensions built on extension-kit export as soon as an OTLP endpoint is configured. Unlike the agent, they default to OTLP over HTTP, so set OTEL_EXPORTER_OTLP_PROTOCOL=grpc when you point them at a gRPC port such as 4317. Otherwise, nothing is exported. With the Helm chart, set the variables through each extension's extraEnv:
OTEL_SDK_DISABLED=true switches an extension's tracing off even when an endpoint is configured. See the extension-kit README for details.
On-Prem Platform
An on-prem platform can export its own spans the same way as the agent: set OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED=true and the OTEL_* variables on the platform. Its spans then join the agent's and extensions' in the same traces.
Sample Jaeger and OpenTelemetry Collector Setup
The following sections explain how to spin up a local Jaeger instance, a Zipkin instance and an OpenTelemetry collector. These steps are optional for a successful configuration of the export mechanism. We list these here for your convenience if you want to check the setup locally.
OpenTelemetry Collector Configuration
We start with a configuration for an OpenTelemetry collector. The collector will accept the telemetry data from Steadybit agents, batch it and then forward it to both Jaeger and Zipkin.
Store this in a file called otel-config.yml within your current working directory.
Docker Compose Configuration
Next, we start all the systems locally using Docker Compose. Note the comments about UI endpoints within the snippet.
Store this in a file called docker-compose.yml within your current working directory. Then run docker compose up to start everything.
Once the startup completes, you can use the following URLs to interact with the systems:
Jaeger UI: http://localhost:16686/
Zipkin UI: http://127.0.0.1:9411/
OpenTelemetry collector OTLP gRPC endpoint: http://127.0.0.1:4317
Last updated
Was this helpful?
