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

support overriding context #18

Open
LarryFinn opened this issue Jun 9, 2017 · 5 comments
Open

support overriding context #18

LarryFinn opened this issue Jun 9, 2017 · 5 comments
Assignees

Comments

@LarryFinn
Copy link

currently my play application uses finagle to communicate with other services. i would like to use the finaggle context in the tracer so that everything lines up. the problem is that the version of brave in this lib is too old to set the context of the tracer. it would be great if we could configure the tracing context like

Tracer tracer = Tracing.newBuilder()
        .currentTraceContext(new FinagleCurrentTraceContext()).build().tracer();
@shimamoto
Copy link
Member

You are right. The version of brave is old. OK, we will handle this soon.

@takezoe
Copy link
Collaborator

takezoe commented Jun 12, 2017

@LarryFinn 1.2.0-SNAPSHOT has been deployed to the sonatype snapshot repository:
https://oss.sonatype.org/content/repositories/snapshots/

Using this snapshot, you can do it by overriding ZipkinTraceService.tracing, and create an alternative module of ZipkinModule to bind your extended class to ZipkinTraceServiceLike.

Could you try it? If it works fine, we will release 1.2.0 after some extra fixes.

@codefromthecrypt
Copy link

curious on this, would we need to do something to hook brave Tracing.currentTraceContext() to the akka dispatcher's executor somehow? It seems like if we didn't asynchronous code would lose the context (which might be backed by finagle implementation)

http://doc.akka.io/docs/akka/current/scala/dispatchers.html#types-of-dispatchers

@takezoe
Copy link
Collaborator

takezoe commented Jun 15, 2017

Hmm... I'm not sure about Finagle implementation, so I don't know clearly what do we have to do to propagate the context between Play and Finagle.

@LarryFinn Do you have any advice?

@codefromthecrypt
Copy link

codefromthecrypt commented Jun 15, 2017 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

4 participants