Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Conversation

@styfle
Copy link
Member

@styfle styfle commented Feb 25, 2019

This provides a way to set the sampling rate by instantiating a new DeterministicSampler.

We will want to set the sample rate to the same value in every service so let's just pick an arbitrary number like 4 (which would be 25% of traces get sampled).

The code in the README shows how we might assign the parent span based on the x-now-id.

Fixes #2

@styfle
Copy link
Member Author

styfle commented Feb 25, 2019

/cc @hharnisc @arunoda @igorklopov

@styfle styfle merged commit ecaf2cf into master Feb 25, 2019
@styfle styfle deleted the determinisitic-sampling branch February 25, 2019 21:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants