Skip to content

Allow configuring RateLimitingSampler via properties #1162

@shakuzen

Description

@shakuzen

Brave 5.6 introduced a RateLimitingSampler which I would like to use with Sleuth. Currently, I would have to provide my own Sampler bean to do this, which is not difficult, but it would be nice if it had the same level of support as the ProbabilityBasedSampler, allowing it to be configured via properties alone. Some restructuring of the properties to support different Sampler implementations may be needed, but I think it would be a nice feature people would use.

Maybe a selector property like spring.sleuth.sampler.type that is an enum for choosing the sampler implementation, paired with specific properties like spring.sleuth.sampler.ratelimiting.rate.

/cc @adriancole

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions