Workflow: Schema Exploration & Attribute Discovery
Discovering indexed span attributes and translating Kubernetes workload metadata into canonical OpenTelemetry TraceQL filters.
Step 1: Discover Available Attribute Names
List all indexed attribute keys grouped across scopes (resource, span, intrinsic, event, link):
tempo_get_attribute_names(scope="all")
Step 2: Enumerate Distinct Attribute Values
Inspect the distinct values populated for a specific attribute key:
tempo_get_attribute_values(name="http.status_code")
Step 3: Check Kubernetes Semantic Mappings
Retrieve canonical mappings between Kubernetes metadata concepts and OpenTelemetry trace attributes:
tempo_get_k8s_attribute_map()
Canonical Mapping Reference:
| Kubernetes Concept | OpenTelemetry Trace Attribute |
|---|---|
| Namespace | k8s.namespace.name |
| Pod Name | k8s.pod.name |
| Deployment | k8s.deployment.name |
| Container | k8s.container.name |
| Node | k8s.node.name |
| Service | service.name |