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 StringKeyValue non-nullable #2019

Merged
merged 2 commits into from
Oct 27, 2020

Conversation

bogdandrutu
Copy link
Member

Add benchmarks for logs and metrics similar to traces.

Before:

goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/consumer/pdata
BenchmarkMetricsFromOtlp
BenchmarkMetricsFromOtlp-16    	     298	   3999204 ns/op	 2424909 B/op	   70785 allocs/op
PASS

After:

goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/consumer/pdata
BenchmarkMetricsFromOtlp
BenchmarkMetricsFromOtlp-16    	     326	   3630227 ns/op	 2271248 B/op	   51577 allocs/op
PASS

Add benchmarks for logs and metrics similar to traces.

Before:

```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/consumer/pdata
BenchmarkMetricsFromOtlp
BenchmarkMetricsFromOtlp-16    	     298	   3999204 ns/op	 2424909 B/op	   70785 allocs/op
PASS
```

After:

```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/consumer/pdata
BenchmarkMetricsFromOtlp
BenchmarkMetricsFromOtlp-16    	     326	   3630227 ns/op	 2271248 B/op	   51577 allocs/op
PASS
```

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu requested a review from a team October 27, 2020 22:16
@@ -273,7 +273,6 @@ genproto_sub:
@echo Modify them in the intermediate directory.
$(foreach file,$(OPENTELEMETRY_PROTO_FILES),$(call exec-command,sed -f proto_patch.sed $(OPENTELEMETRY_PROTO_SRC_DIR)/$(file) > $(PROTO_INTERMEDIATE_DIR)/$(file)))


Copy link
Member Author

Choose a reason for hiding this comment

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

Result of merge :(

consumer/pdata/common_test.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 27, 2020

Codecov Report

Merging #2019 into master will increase coverage by 0.02%.
The diff coverage is 96.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2019      +/-   ##
==========================================
+ Coverage   91.88%   91.90%   +0.02%     
==========================================
  Files         276      276              
  Lines       16462    16461       -1     
==========================================
+ Hits        15126    15129       +3     
+ Misses        921      919       -2     
+ Partials      415      413       -2     
Impacted Files Coverage Δ
exporter/prometheusremotewriteexporter/helper.go 98.93% <ø> (ø)
consumer/pdata/common.go 96.68% <96.00%> (-0.01%) ⬇️
internal/data/testdata/common.go 100.00% <100.00%> (ø)
translator/internaldata/resource_to_oc.go 94.52% <0.00%> (+5.47%) ⬆️

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 6ae6615...5164d65. Read the comment docs.

Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>
@bogdandrutu bogdandrutu merged commit 22fdd41 into open-telemetry:master Oct 27, 2020
@bogdandrutu bogdandrutu deleted the skvbyvalue branch October 27, 2020 22:35
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants