Skip to content

Pool attribute slices in stdouttrace self-observability#7201

Merged
MrAlias merged 5 commits intoopen-telemetry:mainfrom
MrAlias:stdouttrace-pool-obs-attrs
Aug 18, 2025
Merged

Pool attribute slices in stdouttrace self-observability#7201
MrAlias merged 5 commits intoopen-telemetry:mainfrom
MrAlias:stdouttrace-pool-obs-attrs

Conversation

@MrAlias
Copy link
Copy Markdown
Contributor

@MrAlias MrAlias commented Aug 15, 2025

Benchmarks

goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/exporters/stdout/stdouttrace
cpu: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
                      │  main.txt   │   stdouttrace-pool-obs-attrs.txt   │
                      │   sec/op    │   sec/op     vs base               │
ExporterExportSpans-8   30.55µ ± 2%   31.76µ ± 3%  +3.96% (p=0.000 n=10)

                      │   main.txt   │   stdouttrace-pool-obs-attrs.txt    │
                      │     B/op     │     B/op      vs base               │
ExporterExportSpans-8   6.538Ki ± 0%   6.353Ki ± 0%  -2.84% (p=0.000 n=10)

                      │  main.txt  │  stdouttrace-pool-obs-attrs.txt   │
                      │ allocs/op  │ allocs/op   vs base               │
ExporterExportSpans-8   135.0 ± 0%   134.0 ± 0%  -0.74% (p=0.000 n=10)

@MrAlias MrAlias added Skip Changelog PRs that do not require a CHANGELOG.md entry pkg:exporter:stdout Related to the stdout exporter package labels Aug 15, 2025
@MrAlias MrAlias force-pushed the stdouttrace-pool-obs-attrs branch from 2bd7f83 to b6f4eb6 Compare August 15, 2025 15:44
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.0%. Comparing base (907d93b) to head (44ad595).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #7201   +/-   ##
=====================================
  Coverage   83.0%   83.0%           
=====================================
  Files        265     265           
  Lines      24651   24661   +10     
=====================================
+ Hits       20464   20476   +12     
+ Misses      3810    3808    -2     
  Partials     377     377           
Files with missing lines Coverage Δ
exporters/stdout/stdouttrace/trace.go 88.8% <100.0%> (+0.9%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MrAlias MrAlias force-pushed the stdouttrace-pool-obs-attrs branch from b6f4eb6 to b6c4710 Compare August 15, 2025 16:02
@MrAlias MrAlias marked this pull request as ready for review August 15, 2025 16:12
The pool is only used on the error path now. Include that in the
benchmark to provide evidence of performance improvement.
@MrAlias MrAlias merged commit 44a0d62 into open-telemetry:main Aug 18, 2025
38 checks passed
@MrAlias MrAlias deleted the stdouttrace-pool-obs-attrs branch August 18, 2025 17:27
MrAlias added a commit to MrAlias/opentelemetry-go that referenced this pull request Aug 18, 2025
…etry#7201)

### Benchmarks

```terminal
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/exporters/stdout/stdouttrace
cpu: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
                      │  main.txt   │   stdouttrace-pool-obs-attrs.txt   │
                      │   sec/op    │   sec/op     vs base               │
ExporterExportSpans-8   30.55µ ± 2%   31.76µ ± 3%  +3.96% (p=0.000 n=10)

                      │   main.txt   │   stdouttrace-pool-obs-attrs.txt    │
                      │     B/op     │     B/op      vs base               │
ExporterExportSpans-8   6.538Ki ± 0%   6.353Ki ± 0%  -2.84% (p=0.000 n=10)

                      │  main.txt  │  stdouttrace-pool-obs-attrs.txt   │
                      │ allocs/op  │ allocs/op   vs base               │
ExporterExportSpans-8   135.0 ± 0%   134.0 ± 0%  -0.74% (p=0.000 n=10)
```
@MrAlias MrAlias added this to the v1.38.0 milestone Aug 20, 2025
@MrAlias MrAlias mentioned this pull request Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:exporter:stdout Related to the stdout exporter package Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants