---
title: "Link to a trace ID | Grafana documentation"
description: "Link to trace IDs from logs and metrics"
---

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

# Link to a trace ID

You can link to Tempo traces from logs or metrics.

## Link to a trace ID from logs

You can link to Tempo traces from logs in Loki, Elasticsearch, Splunk, and other logs data sources by configuring an internal link.

To configure this feature, refer to the [Derived fields](/docs/grafana/v12.4/datasources/loki/configure-loki-data-source/#derived-fields) section of the Loki data source docs or the [Data links](/docs/grafana/v12.4/datasources/elasticsearch/configure/#data-links) section of the Elasticsearch or Splunk data source docs.

## Link to a trace ID from metrics

You can link to Tempo traces from metrics in Prometheus data sources by configuring an exemplar.

To configure this feature, refer to the [Exemplars](/docs/grafana/v12.4/fundamentals/exemplars/) documentation.
