-
Notifications
You must be signed in to change notification settings - Fork 783
opentelemetry-sdk: add experimental composable rule based sampler #4882
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
base: main
Are you sure you want to change the base?
Conversation
opentelemetry-sdk/src/opentelemetry/sdk/trace/_sampling_experimental/_rule_based.py
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/trace/_sampling_experimental/_rule_based.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/trace/_sampling_experimental/_rule_based.py
Outdated
Show resolved
Hide resolved
…mental/_rule_based.py Co-authored-by: Anuraag (Rag) Agrawal <anuraaga@gmail.com>
…t_description While at it also provide AttributePredicate
| def __str__(self) -> str: ... | ||
|
|
||
|
|
||
| class AttributePredicate: |
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.
Did you mean to export this in __init__.py? Or otherwise probably better to move to the test
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.
Not sure I want to export this from __init__.py since this is not in the spec but I've seen java implements this (and isRoot) and can be handy for users I guess.
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.
Right - just basically, if not exporting it, it could just be treated as a test helper instead of here I think
Description
This adds a composable rule based sampler to the experimental samplers.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Contrib Repo Change?
Checklist: