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

adds request sampler into zipkin tracing. #813

Merged
merged 2 commits into from
Jan 2, 2019

Conversation

jcchavezs
Copy link
Contributor

@jcchavezs jcchavezs commented Dec 14, 2018

Closes #812

Ping @basvanbeek

@@ -27,7 +27,7 @@ const (
testTagValue = "test_value"
)

func TestHttpClientTracePropagatesParentSpan(t *testing.T) {
func TestHTTPClientTracePropagatesParentSpan(t *testing.T) {
Copy link
Contributor Author

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.

@jcchavezs
Copy link
Contributor Author

Not sure how my change is related to the current failure. Could we have a retrigger?

@jcchavezs
Copy link
Contributor Author

Can we please merge this @basvanbeek @peterbourgon ?

@@ -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 {
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@basvanbeek basvanbeek merged commit aed3207 into go-kit:master Jan 2, 2019
@jcchavezs jcchavezs deleted the adds_request_sampler branch January 2, 2019 12:42
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