-
Notifications
You must be signed in to change notification settings - Fork 896
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
Configuring a sampler from an environment variable #679
Comments
If user specifies In Jaeger SDKs we used two vars, mirroring the span tags set after sampling decision was made: |
Additional information can be specified using sampler specific environment variables. Currently #666 proposes |
yeah, sounds ok |
I think this is a nice-to-have, not a must-have for 1.0 GA. It can be added after GA in a non-breaking manner. I suggest to remove release:required-for-ga label. |
Since I don't see any objections I am moving this to after GA. |
We already have |
Sampler configuration
A comment on #666 expressed the desire to be able to configure a sampler by environment variable. I've opened this issue as a way to discuss how this should work.
A possible solution
Configuring a propagator via environment variable requires taking a string and looking up or creating a propagator instance. One way to accomplish this is by having a sampler registry. Since samplers are an extension point, users should be able to register custom types.
Other Solutions
Please discuss alternatives in the comments
Environment Variable Name
Note: We will need to define a canonical name for each sampler. Is lower snakecase a reasonable choice for built samplers, or should we choose something else?
Open Questions
How should we handle failure? What if an environment variable is set to an invalid name?
I'm open to any other proposals or suggestions. I just wanted to get the discussion going with this proposal.
The text was updated successfully, but these errors were encountered: