How to Generate OpenTelemetry Test Data: telemetrygen, the Demo App and OTel Studio
Sooner or later every observability project needs data that does not come from production: to try a new collector, build a dashboard, rehearse an alert or size a backend. There are four common ways to get it, and each is the right answer for a different question. This page compares them honestly so you can pick the one that fits.
The four options
| Option | What you get | Best for | Watch out for |
|---|---|---|---|
| Your own application, instrumented with an OpenTelemetry SDK | Real data from real code | Verifying your own instrumentation, context propagation and resource attributes | Needs a running, loaded system; hard to produce rare failures on demand |
| telemetrygen (from the OpenTelemetry Collector contrib project) | A command-line tool that sends generated traces, logs or metrics at a set rate for a set duration | Quick smoke tests: "does this receiver accept data?" | Simple, uniform data; no service topology, no correlation between signals unless you build it |
| The OpenTelemetry Demo (the "astronomy shop") | A complete microservices shop in many languages with real instrumentation and feature flags to cause failures | Learning how real instrumentation looks and trying a backend end to end | Many containers to run; behaviour is fixed to that one application |
| OTel Studio | A generator with 30 service topologies, six estate simulators, correlated logs, and anomaly and incident injection, controlled from a UI, a command line or an API | Dashboards, alert rules, collector pipelines, capacity and cardinality tests, demos, CI checks | The data is synthetic: it cannot test your own SDK instrumentation |
Start with the question, not the tool
- "Does my collector accept OTLP at all?" Any generator works.
telemetrygenis the lightest; OTel Studio's Test button also answers it without sending real data. - "Is my instrumentation correct?" Only your own application can tell you. Synthetic data cannot validate code it never ran.
- "Does my dashboard handle many services, hosts and pods?" You need varied, correlated data at some scale — OTel Studio's scenarios and estate simulators, or a loaded real system.
- "Does my alert fire on a spike in errors, and resolve?" You need failures on demand. See Test Alert Rules and SLO Burn Rates.
- "What will this cost at ten times the volume?" You need a controllable rate and cardinality. See Load-Test and Size a Backend.
- "Does my pipeline keep trace IDs on logs?" You need traffic where logs are written inside spans. See Trace-Log Correlation.
What good test data looks like
Whatever generator you use, data that tests a pipeline well has these properties:
- Varied. Several services, several operations, a mix of fast and slow requests and of successes and errors. A processor that filters on status codes will pass a test with one hand-made 200 response and fail in production.
- Correlated. Logs carry the trace and span IDs of the span they were written in, and the same host or pod identity appears in traces and metrics.
- Controllable. You can raise the rate, add failures and stop it, so tests are repeatable.
- Marked. It is obviously test data. OTel Studio sets
synth.generated: trueon everything, so it can be filtered out of production views. - Realistic in shape. Logs outnumber traces, which outnumber metric points. Volume tests with the wrong ratios give the wrong answers.
Examples side by side
A quick smoke test with telemetrygen:
telemetrygen traces --otlp-endpoint localhost:4317 --otlp-insecure --duration 10s --rate 5The same idea with OTel Studio — a minute of correlated traffic from a realistic topology, from the command line:
docker run --rm ghcr.io/xplurdata/otel-studio:latest \
node dist/headless.js --config load.yaml --duration 60s \
--endpoint http://collector:4318 --protocol http
Both are valid; they answer different questions. Many teams use both — a one-line generator for "is it up?" and a topology-based one for everything after.