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

Tag WSClient requests with information about requests #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simao
Copy link

@simao simao commented Jul 10, 2019

This adds more information to the span used by TracedWSClient.

I added a test, but instantiating another application seems to break ZipkinModuleSpec, which uses Tracing.current. Each test is green when running them separately. I could try changing that to something else but didn't want to change that spec, not sure how to proceed here?

Thanks!

val tracingTags = List(
"http.method" -> this.method,
"http.path" -> this.uri.getPath,
"http.host" -> this.uri.getHost

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi this isn't usually tagged by default. remoteEndpoint is, though

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean we should call remoteServiceName in ZipkinTraceServiceLike ? Because right now it just calls name on the span and I see remoteEndpoint is deprecated.

@simao
Copy link
Author

simao commented Jul 10, 2019

Also, the test I added is failing here because ti depends on #53

@codefromthecrypt
Copy link

codefromthecrypt commented Jul 11, 2019 via email

@simao
Copy link
Author

simao commented Jul 11, 2019

@adriancole Thanks for checking my PRs, I won't have time in the next few days but I will work a bit more on this asap.

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

Successfully merging this pull request may close these issues.

2 participants