Task · TSO-0068

Delta-temporality escape hatch for OTLP metrics export

Description

cumulativeTemporalitySelector (internal/telemetry/exporters.go:51-57) is unconditional - correct for Grafana Cloud, but backends preferring delta have no knob. Keep cumulative as the default and add a config override (validated enum), documenting the Grafana Cloud guidance.

Acceptance Criteria

Definition of Done

Implementation Plan

Root F1 freezes OTLP metric temporality as cumulative by default with a validated enum; lane H later wires exporter selection and tests it.

Lane H consumes the frozen metric_temporality enum across both OTLP exporters, preserving gauge last-value semantics and testing delta versus cumulative selection.

Final Summary

Added configurable OTLP metric temporality with cumulative as the behavior-preserving default, regenerated schema and env documentation, and pinned the wire behavior with exporter tests. Implementation SHA f35b6ab. Final integrated just check passed at 5b55617; exact-head CI run 33354208183 completed success.

View the source file on GitHub