Struct opentelemetry_sdk::trace::JaegerRemoteSampler
source · pub struct JaegerRemoteSampler { /* private fields */ }
Available on crate feature
trace
only.Expand description
Sampler that fetches the sampling configuration from remotes.
It offers the following sampling strategies:
- Probabilistic, fetch a probability between [0.0, 1.0] from remotes and use it to sample traces. If the probability is 0.0, it will never sample traces. If the probability is 1.0, it will always sample traces.
- Rate limiting, ses a leaky bucket rate limiter to ensure that traces are sampled with a certain constant rate.
- Per Operations, instead of sampling all traces, it samples traces based on the span name. Only probabilistic sampling is supported at the moment.
User can build a JaegerRemoteSampler
by getting a JaegerRemoteSamplerBuilder
from Sampler::jaeger_remote
.
Note that the backend doesn’t need to be Jaeger so long as it supports jaeger remote sampling protocol.
Trait Implementations§
source§impl Clone for JaegerRemoteSampler
impl Clone for JaegerRemoteSampler
source§fn clone(&self) -> JaegerRemoteSampler
fn clone(&self) -> JaegerRemoteSampler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JaegerRemoteSampler
impl Debug for JaegerRemoteSampler
source§impl ShouldSample for JaegerRemoteSampler
impl ShouldSample for JaegerRemoteSampler
Auto Trait Implementations§
impl !RefUnwindSafe for JaegerRemoteSampler
impl Send for JaegerRemoteSampler
impl Sync for JaegerRemoteSampler
impl Unpin for JaegerRemoteSampler
impl !UnwindSafe for JaegerRemoteSampler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more