Skip to content
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

Merged
merged 2 commits into from Oct 27, 2020

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Oct 27, 2020

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:

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

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>
@bogdandrutu bogdandrutu requested a review from a team as a code owner October 27, 2020 19:59
@project-bot project-bot bot added this to In progress in Collector Oct 27, 2020
@codecov
Copy link

codecov bot commented Oct 27, 2020

Codecov Report

Merging #2017 into master will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
consumer/pdata/generated_metrics.go 100.00% <ø> (ø)
internal/goldendataset/span_generator.go 98.86% <ø> (ø)
consumer/pdata/common.go 96.69% <100.00%> (-0.04%) ⬇️
internal/data/testdata/common.go 100.00% <100.00%> (ø)
internal/data/testdata/log.go 100.00% <100.00%> (ø)
internal/goldendataset/generator_commons.go 88.88% <100.00%> (ø)
translator/internaldata/resource_to_oc.go 89.04% <0.00%> (-2.74%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7dd853a...22e4362. Read the comment docs.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Collector automation moved this from In progress to Reviewer approved Oct 27, 2020
@tigrannajaryan tigrannajaryan merged commit 0826255 into open-telemetry:master Oct 27, 2020
Collector automation moved this from Reviewer approved to Done Oct 27, 2020
@bogdandrutu bogdandrutu deleted the kvbyvalue branch October 27, 2020 21:42
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants