This repository has been archived by the owner on Jun 14, 2023. It is now read-only.
Build tracer with customized sampler object not just by sampling rate #84
Labels
enhancement
New feature or request
Milestone
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Currently,
trace_opts.go
provides a function to set sampler with signaturefunc WithSampler(samplingRate float64) TracerOption
. I hope it can provide another function likefunc WithSampler(sampler Sampler) TracerOption
, then I can set my customized sampler.At the same time, the
RandomSampler
has a little bug:It should be
s.threshold > s.rand.Intn(100)
.Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: