-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Rename WithDefaultSampler TracerProvider option to WithSampler and update docs #1702
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
Rename WithDefaultSampler TracerProvider option to WithSampler and update docs #1702
Conversation
The term "DefaultSampler" comes from early ideas of this project where there would be overriding samplers lower in the trace SDK. This overriding does not exist and if it is going to be introduced in the future the sampler associated with the TracerProvider is already scoped based on that association (no need to scope with a name). This renames the TracerProvider option to not include this anachronism.
If one does not pass the |
@seh opentelemetry-go/sdk/trace/provider.go Line 69 in 345f264
|
Thanks for the reference. What do you think about mentioning that in the documentation for |
SGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice. Thank you for the extra documentation. I made one corrective suggestion, and asked one clarifying question.
Co-authored-by: Steven E. Harris <seh@panix.com>
Codecov Report
@@ Coverage Diff @@
## main #1702 +/- ##
=====================================
Coverage 77.8% 77.8%
=====================================
Files 130 130
Lines 7013 7013
=====================================
+ Hits 5461 5463 +2
+ Misses 1301 1299 -2
Partials 251 251
|
The term "DefaultSampler" comes from early ideas of this project where there would be overriding samplers lower in the trace SDK. This overriding does not exist and if it is going to be introduced in the future the sampler associated with the TracerProvider is already scoped based on that association (no need to scope with a name). This renames the TracerProvider option to not include this anachronism.
This does not rename the
TracerProvider
config which is being removed in #1693