mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
chore: update metrics temporality (#8901)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user