-
Notifications
You must be signed in to change notification settings - Fork 19
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
The default sampler should not sample all operations #30
Comments
Previously the default configuration sampled every operation. Any application using a tracing-aware client would send every request with `X-B3-Sampled: 1`, so even if the local application did not record sample data to disk, upstream services would be forced to.
The goal of AlwaysSampler was to force deliberate configuration -- a roughly equivalent, but easier for your scenario, semantic would be a NeverSampler, which I think would be preferable to a preconfigured RandomSampler |
That's reasonable, will build shortly. In the default case I'd prefer not to inform the target system whether or not to sample, but defer to its sampler. Implementation likely isn't worth the complexity though. |
Previously the default configuration sampled every operation. Any application using a tracing-aware client would send every request with `X-B3-Sampled: 1`, so even if the local application did not record sample data to disk, upstream services would be forced to.
Yeah, I think I may have screwed that up in the Trace API: it doesn't account for "observability hasn't been decided" and thus the cannot choose to not set the SAMPLED header and defer the decision to the next node. |
There are a number of java api changes I'd like to propose for a major version revision. Where is the best place to track them, given that I don't have cycles to implement in the near future? Examples:
|
I think it's fine to write up issues and tag them as |
Great, thanks. Any chance I can get permissions to create GH milestones or labels? |
Closing in favor of #32 |
What happened?
If I create a simple application and include http-remoting, every requests is sent with
X-B3-Sampled: 1
due to our usage ofAlwaysSampler
by default. Even if my demonstration application does not write trace data to disk, it will cause other services to do so.What did you want to happen?
I am proposing that we update the default sampler to
new RandomSampler(.01f)
to sample 1% of actions unless another sampler is specified. I have no strong opinion regarding 1% in particular, but would prefer that we do not sample everything. This value is used elsewhere, so it should be a reasonable default.The text was updated successfully, but these errors were encountered: