Menu
Grafana Cloud
← Back to What's new
ExperimentalData sourcesTracesProfiles
Release date: 2024-01-03

Trace to Profiles

Using Trace to profiles, you can use Grafana’s ability to correlate different signals by adding the functionality to link between traces and profiles.

Trace to profiles lets you link your Grafana Pyroscope data source to tracing data. When configured, this connection lets you run queries from a trace span into the profile data.

There are two ways to configure the trace to profiles feature:

  • Use a simplified configuration with default query, or
  • Configure a custom query where you can use a template language to interpolate variables from the trace or span.

Trace to profiles screenshot

To try out Trace to profiles, enable the ’traceToProfiles’ feature toggle.

If you would also like to try out the Embedded Flame Graph feature, please enable the ’tracesEmbeddedFlameGraph’ feature toggle.

Note: in order to determine that there is a profile for a given span and render the ‘Profiles for this span’ button or the embedded flame graph in the span details, the ‘pyroscope.profile.id’ key-value pair must exist in your span tags.