chore: update metrics temporality (#8901)

This commit is contained in:
jif-oai 2026-01-09 14:57:42 +00:00 committed by GitHub
parent 7e5b3e069e
commit bc92dc5cf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,13 +135,12 @@ impl MetricsClient {
])
.build();
let temporality = Temporality::default();
let (meter_provider, meter) = match config.exporter {
MetricsExporter::InMemory(exporter) => {
build_provider(resource, exporter, config.export_interval)
}
MetricsExporter::Otlp(exporter) => {
let exporter = build_otlp_metric_exporter(exporter, temporality)?;
let exporter = build_otlp_metric_exporter(exporter, Temporality::Delta)?;
build_provider(resource, exporter, config.export_interval)
}
};