---
title: "Traces scenarios | Grafana Cloud documentation"
description: "Runnable scenarios that receive, sample, and forward traces with Grafana Alloy"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Traces scenarios

The traces scenarios receive spans over OpenTelemetry, Jaeger, or Zipkin protocols and forward them to Tempo.

Expand table

| Scenario                                                                                                                                       | Description                                                                                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Distributed tracing](https://github.com/grafana/alloy-scenarios/tree/main/trace-delivery)                                                     | Learn distributed tracing through a sofa delivery workflow from order to doorstep.                                                                                         |
| [Game of tracing](https://github.com/grafana/alloy-scenarios/tree/main/game-of-tracing)                                                        | Play an interactive strategy game that teaches distributed tracing, sampling, and service graphs.                                                                          |
| [OpenTelemetry basic tracing](https://github.com/grafana/alloy-scenarios/tree/main/otel-basic-tracing)                                         | Collect and visualize OpenTelemetry traces with Alloy and Tempo.                                                                                                           |
| [OpenTelemetry Collector to Alloy migration](https://github.com/grafana/alloy-scenarios/tree/main/otel-collector-to-alloy-migration)           | Compare equivalent OTLP pipelines in the OpenTelemetry Collector and Alloy with matching telemetry.                                                                        |
| [OpenTelemetry SDK traces across languages](https://github.com/grafana/alloy-scenarios/tree/main/app-instrumentation/traces/opentelemetry-sdk) | Instrument five languages with the OpenTelemetry tracing SDK and collect standalone traces through Alloy into Tempo.                                                       |
| [OpenTelemetry Jaeger and Zipkin receivers](https://github.com/grafana/alloy-scenarios/tree/main/otel-jaeger-zipkin-receiver)                  | Ingest Jaeger and Zipkin trace formats with Alloy and forward them to Tempo over OTLP.                                                                                     |
| [Zero-code eBPF instrumentation](https://github.com/grafana/alloy-scenarios/tree/main/beyla-zero-code-instrumentation)                         | Auto-instrument an unmodified Go HTTP service with `beyla.ebpf` – no OpenTelemetry SDK, no agent, no code changes. Produces RED metrics and traces from eBPF probes alone. |
| [OpenTelemetry load balancing](https://github.com/grafana/alloy-scenarios/tree/main/otel-loadbalancing)                                        | Shard traces across two tail-sampling Alloy instances with `otelcol.exporter.loadbalancing` – same trace ID, same backend.                                                 |
| [OpenTelemetry service graphs](https://github.com/grafana/alloy-scenarios/tree/main/otel-tracing-service-graphs)                               | Generate service graphs with the Alloy `servicegraph` connector.                                                                                                           |
| [OpenTelemetry span metrics](https://github.com/grafana/alloy-scenarios/tree/main/otel-span-metrics)                                           | Generate RED metrics from OpenTelemetry traces with the span metrics connector. Request rate, error rate, and duration.                                                    |
| [OpenTelemetry tail sampling](https://github.com/grafana/alloy-scenarios/tree/main/otel-tail-sampling)                                         | Apply tail sampling policies to OpenTelemetry traces with Alloy and Tempo.                                                                                                 |
| [Trace correlation with exemplars](https://github.com/grafana/alloy-scenarios/tree/main/trace-log-correlation-exemplars)                       | Jump from a latency histogram to the exact trace behind it with OpenMetrics exemplars flowing through Alloy into Prometheus and Tempo.                                     |

Refer to the [alloy-scenarios](https://github.com/grafana/alloy-scenarios) repository for the full list of scenarios.
