chore(instrumentation-grpc): cleanup remnants of grpc-native support - #3886
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3886 +/- ##
==========================================
+ Coverage 91.15% 93.14% +1.98%
==========================================
Files 127 298 +171
Lines 2747 8868 +6121
Branches 548 1826 +1278
==========================================
+ Hits 2504 8260 +5756
- Misses 243 608 +365
|
dyladan
left a comment
There was a problem hiding this comment.
Generally looks good to me. I think removing metadata from shouldNotTraceServerCall is fine since it is unused and unexported
|
cc @pichlermarc |
pichlermarc
left a comment
There was a problem hiding this comment.
Thanks for taking care of this. 🙂
Just one possible caveat: I'm wondering what happens when we wrap two different versions of @grpc/grpc-js in the same app. 🤔
|
I reverted the But the problem still exists: In the output JS code, there is still something like |
You can pass Unfortunately, we need to construct |
Nice. |
pichlermarc
left a comment
There was a problem hiding this comment.
Looks good; thanks for addressing the comments 🙂
|
cc @dyladan |
Which problem is this PR solving?
Fixes #3869
Short description of the changes
import * from '@grpc/grpc-js'and use destructuring imports instead.grpcinstance as a parameter.grpcClientingetMetadata()grpcClientin_patchClient()grpcClientin_patchLoadPackageDefinition()grpcClientin_getPatchedClientMethods()grpcClientin_patchLoadedPackage()metadatainshouldNotTraceServerCall()*idk if this one should be removed but
metadatais not used in this function and it's not exported outside the package.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: