How to: Tempo - Traces
Receives spans from applications.

#### Grafana Data Source

[Trace to logs](https://grafana.com/docs/grafana/latest/datasources/tempo/#trace-to-logs) setting:

1. Data source: target log source
2. Tags: key of tags from the trace, which will be log query criteria if the key exists in the trace
   1. Without as value: use the key as query label
   2. With as value: convert the tag key to another key as query label

Grafana data source setting example:

![Data Source of Tempo: Trace to logs](./images/tempo-trace-to-logs.png)

Grafana data sources config example:

```yaml
uid: tempo
orgId: 1
name: Tempo
type: tempo
typeName: Tempo
access: proxy
url: http://tempo
password: ''
user: ''
database: ''
basicAuth: false
isDefault: false
jsonData:
  nodeGraph:
    enabled: true
  tracesToLogsV2:
    customQuery: false
    datasourceUid: loki
    filterBySpanID: false
    filterByTraceID: true
    tags:
      - key: service.name
        value: compose_service
readOnly: false
editable: true
```