chore: update metrics temporality (#8901)
This commit is contained in:
parent
7e5b3e069e
commit
bc92dc5cf0
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue