New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make all KeyValue non-nullable #2017
Conversation
Good win in the amount of allocations, and some nice win for the latency Before: ``` goos: darwin goarch: amd64 pkg: go.opentelemetry.io/collector/consumer/pdata BenchmarkTracesFromOtlp BenchmarkTracesFromOtlp-16 686 1759476 ns/op 981565 B/op 35113 allocs/op PASS ``` After: ``` goos: darwin goarch: amd64 pkg: go.opentelemetry.io/collector/consumer/pdata BenchmarkTracesFromOtlp BenchmarkTracesFromOtlp-16 666 1720189 ns/op 940353 B/op 29961 allocs/op PASS ``` Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #2017 +/- ##
==========================================
- Coverage 91.68% 91.67% -0.02%
==========================================
Files 284 284
Lines 16883 16879 -4
==========================================
- Hits 15479 15473 -6
- Misses 971 972 +1
- Partials 433 434 +1
Continue to review full report at Codecov.
|
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
Good win in the amount of allocations, and some nice win for the latency. In the current benchmarks only one attribute per resource, one attribute per span, one attribute per link, and one attribute per event.
Before:
After:
Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com