opentelemetry-swift icon indicating copy to clipboard operation
opentelemetry-swift copied to clipboard

Prometheus exporter: Omit timestamps from metrics

Open dashpole opened this issue 2 years ago • 0 comments

From the OpenMetrics spec on timestamps:

In general, MetricPoint timestamps should not be exposed, as it should be up to the ingestor to apply their own timestamps to samples they ingest.

The current implementation adds timestamps to all metrics: https://github.com/open-telemetry/opentelemetry-swift/blob/main/Sources/Exporters/Prometheus/PrometheusMetric.swift#L54

dashpole avatar Dec 06 '22 18:12 dashpole