Skip to content
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

Couchbase query is missing trace id #914

Closed
asarkar opened this issue Mar 23, 2018 · 7 comments
Closed

Couchbase query is missing trace id #914

asarkar opened this issue Mar 23, 2018 · 7 comments

Comments

@asarkar
Copy link

asarkar commented Mar 23, 2018

While working with Couchbase client and Spring Cloud Sleuth, I found an issue with how Couchbase uses Subject. Sleuth relies on the RxJava hooks to continue the trace and span id. AbstractCouchbaseRequest creates a Subjectthat bypasses the RxJava hooks. Hence, Sleuth can't trace the Couchbase queries made.

I believe this to be a Sleuth issue and not Couchbase beacuse they don't seem to be doing anything wrong with their usage of Subject.

cb-query

@asarkar asarkar changed the title Couchbase query is lacking trace id Couchbase query is missing trace id Mar 23, 2018
@marcingrzejszczak
Copy link
Contributor

Duplicate of #909 and #398 . The current scope in which we support RxJava will not change since we suggest people to move towards Reactor.

@asarkar
Copy link
Author

asarkar commented Mar 24, 2018

since we suggest people to move towards Reactor

How exactly do you suggest people to move to Reactor when the code is written by third-party? Just because Sleuth is not able to work with RxJava doesn’t mean every library in the world is suddenly going to jump ship and rewrite their code. Such suggestion makes no sense to me

@marcingrzejszczak
Copy link
Contributor

Of course. There's no problem for you to file a PR to fix the RxJava instrumentation. It's open source and you're one of the first (if not the first) persons to complain about this.

@codefromthecrypt
Copy link
Contributor

opened openzipkin/brave#664 for a "continue-only" scheduler hook for rxjava2. This is not automatic instrumentation, just would prevent people from copy/pasting the trace continuing parts. It might now solve what you want, but anyway worth a look.

@asarkar
Copy link
Author

asarkar commented Mar 26, 2018

No problem for you to file a PR

True, but one might wonder why didn't you when you filed 398 1.5 years ago. That said, I'll take a look, and pay my dues if I can.

@adriancole I'm using RxJava 1

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Mar 26, 2018 via email

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Apr 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants