1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-12-01 23:12:29 +02:00
Files
opentelemetry-go/sdk
Robert Wu a80ee2de89 feat: instrument periodic reader from sdk/metric (#7571)
Resolve: #7010 

### Benchmarks

```
➜ benchstat /tmp/bench_disabled.txt /tmp/bench_enabled.txt
goos: darwin
goarch: arm64
pkg: go.opentelemetry.io/otel/sdk/metric
cpu: Apple M1 Max
                                                 │ /tmp/bench_disabled.txt │       /tmp/bench_enabled.txt       │
                                                 │         sec/op          │   sec/op     vs base               │
PeriodicReaderInstrumentation/NoObservability-10               17.00µ ± 0%   17.02µ ± 0%       ~ (p=0.400 n=50)
PeriodicReaderInstrumentation/Observability-10                 17.48µ ± 0%   17.47µ ± 0%       ~ (p=0.361 n=50)
geomean                                                        17.24µ        17.24µ       +0.04%

                                                 │ /tmp/bench_disabled.txt │       /tmp/bench_enabled.txt        │
                                                 │          B/op           │     B/op      vs base               │
PeriodicReaderInstrumentation/NoObservability-10              47.63Ki ± 0%   47.63Ki ± 0%       ~ (p=0.159 n=50)
PeriodicReaderInstrumentation/Observability-10                47.65Ki ± 0%   47.65Ki ± 0%       ~ (p=0.780 n=50)
geomean                                                       47.64Ki        47.64Ki       +0.00%

                                                 │ /tmp/bench_disabled.txt │       /tmp/bench_enabled.txt        │
                                                 │        allocs/op        │ allocs/op   vs base                 │
PeriodicReaderInstrumentation/NoObservability-10                376.0 ± 0%   376.0 ± 0%       ~ (p=1.000 n=50) ¹
PeriodicReaderInstrumentation/Observability-10                  376.0 ± 0%   376.0 ± 0%       ~ (p=1.000 n=50) ¹
geomean                                                         376.0        376.0       +0.00%
¹ all samples are equal
```

---------

Co-authored-by: Damien Mathieu <42@dmathieu.com>
2025-11-05 10:19:20 +01:00
..
2025-10-08 07:55:16 -07:00
2025-10-08 07:55:16 -07:00
2025-08-29 12:42:52 -07:00