opentelemetry-swift
opentelemetry-swift copied to clipboard
Prometheus exporter: Omit timestamps from metrics
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