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

HTTPReporter: Adds b3:0 header and unit test for custom headers using HTTPDoer #176

Merged
merged 2 commits into from
Sep 9, 2020

Conversation

basvanbeek
Copy link
Member

To mitigate trace amplification in service mesh environments we default to sending a B3: 0 header to our outgoing OOB calls to the Zipkin collector.

To allow these calls still to be traced by a sidecar, this now default behavior can be reverted using the AllowSamplingReporterCalls functional option.

There is sometimes a need to inject custom headers as well. We had the support through the HTTPDoer interface but did not test for this functionality to work. This PR adds a unit test for it as well as show how to use HTTPDoer for this feature.

@basvanbeek basvanbeek requested a review from jcchavezs September 9, 2020 09:50
@coveralls
Copy link

coveralls commented Sep 9, 2020

Coverage Status

Coverage increased (+13.3%) to 74.407% when pulling a4c38a5 on basvanbeek:http-reporter-sampled-0 into dc18516 on openzipkin:master.

@basvanbeek basvanbeek merged commit f2e3397 into openzipkin:master Sep 9, 2020
@codefromthecrypt
Copy link
Member

@jcchavezs
Copy link
Contributor

jcchavezs commented Sep 14, 2020 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

Successfully merging this pull request may close these issues.

4 participants