-
Notifications
You must be signed in to change notification settings - Fork 838
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
gRPC plugin is not working correctly when loaded with @grpc/proto-loader #384
Comments
/cc @markwolff |
Haven't looked into this yet, but it's probably for a similar reason that patching the internal function |
No, it is not working as expected. |
Strangly, with OC when I used lowercase method name in protos: https://github.com/open-telemetry/opentelemetry-js/pull/385/files#diff-a10e9a452e0c1da7f8f0d0f5a70622e4R12, everything works well. Maybe, we are not patching all the client methods properly: https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-plugin-grpc/src/grpc.ts#L336-L341 |
Yes the lowercase stuff was a bug I found in OC as well which would be fixed by this. If the lowercase name works in OC, then I shouldn't have to use |
Possible. While testing found out https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-plugin-grpc/src/grpc.ts#L328 is not getting called when using proto-loader. |
Looked into this, it is because of lerna linking. The grpc-plugin's devdep I see 2 ways of resolving this:
Either way, I will open a PR to fix the issue with @mayurkale22 WDYT? |
I am fine with the option 1. Do you think I should merge the example - gRPC example using proto-loader #385? |
I think thats fine. It just wont work if using it by cloning this whole repo. |
Closing via #631 |
* Support configuring sampling endpoint - Allow users to specify a non standard endpoint to retrieve sampling priorities from Signed-off-by: Prithvi Raj <[email protected]> * Add test Signed-off-by: Prithvi Raj <[email protected]> * Fix logic Signed-off-by: Prithvi Raj <[email protected]>
When a proto file is loaded with @grpc/proto-loader, gRPC plugin instrumentation is not working correctly.
Client
andServer
traces has different traceIds.Client Traces:
Server Traces:
May be something to do with the binary propagation or client methods are not patched properly.
The text was updated successfully, but these errors were encountered: