-
Notifications
You must be signed in to change notification settings - Fork 825
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
Disconnected traces when using @opentelemetry/instrumentation-grpc
with @openfeature/flagd-provider
#3775
Comments
Thank you @pichlermarc for recreating and looking into the issue. Two minor remarks
[1] - open-feature/flagd#624 |
Update - our most recent flagd version v0.5.3 [1] contains the built-in tracing setup. Besides, I composed a minimal multi-language setup to recreate the problem [2] in which Go & Java work as expected. [1] - https://github.com/open-feature/flagd/pkgs/container/flagd/90724874?tag=v0.5.3 |
Looks like this is because the client generated by the |
@pichlermarc do you have any new update on this issue :) ? |
Hi, I'm still working on it but the fix is taking longer than initially expected. EDIT: A draft PR is open but I'll still need to clean it up and add a bunch of tests. |
Thank you for the update @pichlermarc Let me know if you need anything from our end. Happy to help you with validations of the fix. |
What happened?
Steps to Reproduce
npm install
npm run docker:start
flagd
,otelcol
andjaeger
npm run start
http://localhost:16686
Expected Result
The trace should start at the
js-client
service and continue toflagd
, however, the trace is broken and two different trace-ids are used, and no grpc spans can be seen.Actual Result
The OpenFeature
FlagdProvider
uses@grpc/grpc-js
to communicate withflagd
, so by using@opentelemetry/instrumentation-grpc
, the trace should be connected, the same trace-id should be used across all serivces, and a span should be created for the service call.OpenTelemetry Setup Code
// see reproduction repository
package.json
Relevant log output
No response
The text was updated successfully, but these errors were encountered: