1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00
Files
opentelemetry-go/exporters/stdout
Nesterov Yehor 1ee4a4126d stdoutmetric observ: skip metric work when instruments are disabled (#7868)
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>
2026-02-04 11:20:38 +01:00
..
2026-02-02 09:46:33 -08:00
2024-03-26 20:13:54 +01:00