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

Avoid getting a new Tracer for every RPC #2835

Merged
merged 1 commit into from Oct 6, 2022

Conversation

bogdandrutu
Copy link
Member

@open-telemetry/go-approvers I believe you should do this optimization for all your instrumentations, since it does not make any sense to retrieve a new Tracer (with same arguments) every request.

@codecov
Copy link

codecov bot commented Oct 5, 2022

Codecov Report

Merging #2835 (c8a5eda) into main (167b53f) will not change coverage.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2835   +/-   ##
=====================================
  Coverage   69.4%   69.4%           
=====================================
  Files        145     145           
  Lines       6712    6712           
=====================================
  Hits        4660    4660           
  Misses      1938    1938           
  Partials     114     114           
Impacted Files Coverage Δ
...ion/google.golang.org/grpc/otelgrpc/interceptor.go 84.2% <100.0%> (ø)

Copy link
Member

@Aneurysm9 Aneurysm9 left a comment

Choose a reason for hiding this comment

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

Please add a changelog entry. While this should be transparent to users, it could have impact (hopefully just positive performance impact) and they should be made aware.

Copy link
Member

@XSAM XSAM left a comment

Choose a reason for hiding this comment

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

👍🏽

@bogdandrutu bogdandrutu changed the title Avoid getting a new Tracer for ever RPC Avoid getting a new Tracer for every RPC Oct 6, 2022
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
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.

None yet

6 participants