You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
1ee4a4126d
Avoid unnecessary metric work in stdoutmetric exporter observability paths by Enabled() checks of metrics. Benchmark BenchmarkExportMetrics Before: ~354 ns/op, 216 B/op, 2 allocs/op (error path) After: ~55 ns/op, 0 B/op, 0 allocs/op This change is internal and I think does not need to be mentioned in the changelog. Issue: #7800 Co-authored-by: Damien Mathieu <42@dmathieu.com>