This is documentation for the next version of Grafana Tempo documentation. For the latest stable release, go to the latest version.

Open source

Span metrics

Span metrics are generated from traces and can be used to create service graphs. You can create span metrics in Tempo’s metrics-generator, Grafana Alloy, or the OpenTelemetry Collector.

If you sample traces before they reach Tempo, choose where to generate those metrics first. Refer to Choose where to generate metrics from traces.

The pages in this section cover Tempo and Alloy settings. For OpenTelemetry Collector settings, including the pipeline diagram, refer to Generate metrics from spans.