-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
adds request sampler into zipkin tracing. #813
Conversation
@@ -27,7 +27,7 @@ const ( | |||
testTagValue = "test_value" | |||
) | |||
|
|||
func TestHttpClientTracePropagatesParentSpan(t *testing.T) { | |||
func TestHTTPClientTracePropagatesParentSpan(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Http -> HTTP, not too important for this PR.
Not sure how my change is related to the current failure. Could we have a retrigger? |
Can we please merge this @basvanbeek @peterbourgon ? |
tracing/zipkin/http.go
Outdated
@@ -156,6 +156,12 @@ func HTTPServerTrace(tracer *zipkin.Tracer, options ...TracerOption) kithttp.Ser | |||
|
|||
if config.propagate { | |||
spanContext = tracer.Extract(b3.ExtractHTTP(req)) | |||
|
|||
if config.requestSampler != nil && spanContext.Sampled == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor item... please swap the tested conditions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Closes #812
Ping @basvanbeek