Skip to content

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

Merged
merged 17 commits into from
Aug 26, 2019
Merged

Sampling API #52

merged 17 commits into from
Aug 26, 2019

Conversation

mwear
Copy link
Member

@mwear mwear commented Aug 14, 2019

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.

@mwear
Copy link
Member Author

mwear commented Aug 15, 2019

@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 should_sample and whether or not Decision#attributes is immutable. Both of those have resulting impacts on the implementation.

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.

@mwear
Copy link
Member Author

mwear commented Aug 15, 2019

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.

@mwear
Copy link
Member Author

mwear commented Aug 16, 2019

This is hot off the presses: open-telemetry/oteps#24, so I'm not sure what that means for this work for now.

@mwear
Copy link
Member Author

mwear commented Aug 19, 2019

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?

@mwear
Copy link
Member Author

mwear commented Aug 26, 2019

Fixes #38

@mwear mwear merged commit 212acf1 into open-telemetry:master Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants