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

Remove expensive calculation of gRPC message size #3168

Merged
merged 4 commits into from
Jan 23, 2023

Conversation

Aneurysm9
Copy link
Member

Signed-off-by: Anthony J Mirabella a9@aneurysm9.com

See open-telemetry/opentelemetry-collector#6947.

Fixes #3165.

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
@@ -14,6 +14,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- `otelmux`: Add new `WithSpanNameFormatter` option to `go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux` to allow customizing span names. (#3041)
- Improve documentation for `samplers/jaegerremote` by providing examples of sampling endpoints. (#3147)

### Changed
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be Removed instead of changed? Or otherwise marked breaking?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd be fine with moving to Removed but I don't think this counts as breaking as it relates to attributes emitted by telemetry and not package APIs.

@bogdandrutu
Copy link
Member

@Aneurysm9 either not close the issue, or open a separate issue to change to stats.Handler.

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
@Aneurysm9
Copy link
Member Author

@Aneurysm9 either not close the issue, or open a separate issue to change to stats.Handler.

#3169

@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Merging #3168 (5ad860c) into main (4de1b23) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #3168   +/-   ##
=====================================
  Coverage   69.2%   69.3%           
=====================================
  Files        147     147           
  Lines       6893    6885    -8     
=====================================
- Hits        4774    4772    -2     
+ Misses      2002    1997    -5     
+ Partials     117     116    -1     
Impacted Files Coverage Δ
...ion/google.golang.org/grpc/otelgrpc/interceptor.go 84.5% <100.0%> (+0.5%) ⬆️
samplers/jaegerremote/sampler_remote.go 87.4% <0.0%> (+1.9%) ⬆️

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.

otelgrpc: performance issue about otlpreceiver invoke proto.Size slow path
6 participants