otelgrpc: StreamClientInterceptor ends spans synchronously#4537
Merged
MadVikingGod merged 10 commits intoopen-telemetry:mainfrom Nov 14, 2023
Merged
otelgrpc: StreamClientInterceptor ends spans synchronously#4537MadVikingGod merged 10 commits intoopen-telemetry:mainfrom
MadVikingGod merged 10 commits intoopen-telemetry:mainfrom
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4537 +/- ##
=====================================
Coverage 80.8% 80.8%
=====================================
Files 150 150
Lines 10371 10342 -29
=====================================
- Hits 8387 8364 -23
+ Misses 1840 1834 -6
Partials 144 144
|
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
|
This makes sense to me, but do we know why it was asynchronous in the first place? |
Member
Author
I have no idea 😢 EDIT: It looks like it was implemented like this "from the beginning": https://github.com/DataDog/dd-trace-go/blob/adc86d4779d9186e509ad0aa51f85bbcb0597241/contrib/google.golang.org/grpc/client.go |
Contributor
|
Can we do a benchmark comparison between the two? If there isn't a significant change, then I approve. |
46b73b1 to
5763eb3
Compare
Member
Author
|
Benchmarks added: 5763eb3 new.txt: old.txt (I cherry picked 5763eb3 to benchstat (no significant change): |
dashpole
approved these changes
Nov 14, 2023
MadVikingGod
approved these changes
Nov 14, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1352
Even though we are deprecating the interceptors, I think we should still have them as https://pkg.go.dev/google.golang.org/grpc/stats is experimental API.