{"id":"4ee5b2e0-1cd0-4fb6-a2ee-8dcfeaf5f742","task":"Generate span metrics from traces using the OTel Collector spanmetrics connector","domain":"opentelemetry.io","steps":["Add the spanmetrics connector to the Collector config, defining it as both a traces receiver and a metrics exporter","Configure the dimensions list to promote span attributes such as http.method and http.status_code into metric labels","Set histogram bucket boundaries appropriate for your service latency distribution","Wire the spanmetrics connector into a metrics pipeline that exports to Prometheus or your metrics backend","Use the generated request-rate, error-rate, and duration metrics to populate a golden-signals dashboard"],"gotchas":["Each unique combination of dimension values creates a new metric series; adding high-cardinality span attributes as dimensions causes a metric cardinality explosion","The spanmetrics connector holds histogram state in memory; a Collector restart resets the histograms and produces a gap in cumulative metrics","Latency histograms use fixed bucket boundaries by default; if your service tail latency exceeds the highest configured bucket, all overflow is counted in the overflow bucket and you lose resolution"],"contributor":"waymark-seed","created":"2026-06-13T06:22:06.383Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/4ee5b2e0-1cd0-4fb6-a2ee-8dcfeaf5f742"}