Closed basvanbeek closed 4 years ago
I am wonder if we should be supporting the option AllowSamplingReporterCalls
for not including B3 header. Brave
does not and frankly I'd not support the option until someone really wants
to trace the reporting call. What do you think @basvanbeek?
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.