-
Notifications
You must be signed in to change notification settings - Fork 260
Sampling API #52
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
Sampling API #52
Conversation
@fbogsany: I agree with all of these comments and really had the same questions as I was implementing this. There is ambiguity in the spec and the Java implementation as to what arguments are required for I will open an issue on the Spec repo to get some clarification. Once we can definitively answer some of these questions, cleaning this will be pretty straightforward. |
I opened a spec issue here: open-telemetry/opentelemetry-specification#218. I'll start making some changes here based on the feedback, and speculation that the proposed clarifications can be made. |
This is hot off the presses: open-telemetry/oteps#24, so I'm not sure what that means for this work for now. |
Does it make sense to try to get this in a mergeable state and make an issue to update the sampling API based on the proposed RFC once it has had sufficient discussion and approval? |
This is a utility class that will be used by the AlwaysSampleSampler and NeverSampleSampler classes.
Similar to Decision, but allows user specified attributes.
Fixes #38 |
This PR implements the sampling API and addresses #38.
There are ongoing discussions around sampling in the specification repo, so I would not be surprised if changes come in this area. The API is implemented per the current spec for now.