-
Notifications
You must be signed in to change notification settings - Fork 714
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
Does Zipkin support ratelimiting sampling #705
Comments
we don't currently pack-in a "rate limited" sampler. I've made notes
in the past about reservoir sampling which is another way of saying
similar. For example, you can have up to 100 traces per second and
then a percentage after that.
spring-cloud/spring-cloud-sleuth#92 (comment)
The implementation is not difficult, it would be implementing brave's
Sampler type similar to how x-ray does it
https://github.com/aws/aws-xray-sdk-java/blob/master/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/strategy/sampling/Reservoir.java
it could get more complicated, though, for example adaptive etc..
however basic rate is not difficult even if it is likely less
efficient than counting (due to needing to read the current time).
If this issue gets a lot of votes (likely) we can implement it.
Meanwhile you could consider implementing on your own and possibly
raising a pull request.
|
@adriancole mind if I rename this issue to something along the lines of:
I need this in zipkin-aws and it definitely belongs in brave other than the XRay specific config |
sure I know there was some naming discussion going on in census where at
least one person didn't like the term reservoir. but anyway yep go ahead!
|
This part is implemented.. compositions can be done in a different issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Besides percentage rate, I found jaeger also supports other sampling strategies like "ratelimiting" in which we can specify how many traces to be sampled per second. (https://www.jaegertracing.io/docs/sampling/), does Zipkin support this ?
The text was updated successfully, but these errors were encountered: