Skip to content

Avoid getting a new Tracer for every RPC#2835

Merged
Aneurysm9 merged 1 commit into
open-telemetry:mainfrom
bogdandrutu:avoidtracer
Oct 6, 2022
Merged

Avoid getting a new Tracer for every RPC#2835
Aneurysm9 merged 1 commit into
open-telemetry:mainfrom
bogdandrutu:avoidtracer

Conversation

@bogdandrutu
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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.

7 participants