-
Notifications
You must be signed in to change notification settings - Fork 564
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
otelgrpc: StreamClientInterceptor ends spans synchronously #4537
otelgrpc: StreamClientInterceptor ends spans synchronously #4537
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.
This makes sense to me, but do we know why it was asynchronous in the first place? |
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 |
Can we do a benchmark comparison between the two? If there isn't a significant change, then I approve. |
46b73b1
to
5763eb3
Compare
Benchmarks added: 5763eb3 new.txt:
old.txt (I cherry picked 5763eb3 to
benchstat (no significant change):
|
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.