Skip to content
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

Remove span_id from samplers #270

Merged
merged 20 commits into from
Jun 13, 2020
Merged

Remove span_id from samplers #270

merged 20 commits into from
Jun 13, 2020

Conversation

fbogsany
Copy link
Contributor

@fbogsany fbogsany commented Jun 4, 2020

Fixes #269
Fixes #267

This also changes the Sampler interface to match the spec. Specifically, we did not provide a description method, and the requirement to add it removes much of the value of providing a Callable interface, so this also renames the call method to should_sample? to match the spec.

@fbogsany fbogsany marked this pull request as ready for review June 4, 2020 02:01
@fbogsany fbogsany self-assigned this Jun 4, 2020
Copy link
Member

@mwear mwear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refactor!

@fbogsany fbogsany merged commit a76c428 into master Jun 13, 2020
@fbogsany fbogsany deleted the remove-span_id-from-samplers branch June 13, 2020 01:22
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.

Remove SpanId from Sampler parameters Replace ALWAYS_PARENT with ParentOrElse sampler
2 participants