pub struct JaegerRemoteSamplerBuilder<C, S, R>where
R: TraceRuntime,
C: HttpClient + 'static,
S: ShouldSample + 'static,{ /* private fields */ }
Available on crate feature
trace
only.Expand description
builder of JaegerRemoteSampler. See Sampler::jaeger_remote for details.
Implementations
sourceimpl<C, S, R> JaegerRemoteSamplerBuilder<C, S, R>where
C: HttpClient + 'static,
S: ShouldSample + 'static,
R: TraceRuntime,
impl<C, S, R> JaegerRemoteSamplerBuilder<C, S, R>where
C: HttpClient + 'static,
S: ShouldSample + 'static,
R: TraceRuntime,
sourcepub fn with_update_interval(self, interval: Duration) -> Self
Available on crate feature jaeger_remote_sampler
only.
pub fn with_update_interval(self, interval: Duration) -> Self
jaeger_remote_sampler
only.Change how often the SDK should fetch the sampling strategy from remote servers
By default it fetches every 5 minutes.
A shorter interval have a performance overhead and should be avoid.
sourcepub fn with_endpoint<Str: Into<String>>(self, endpoint: Str) -> Self
Available on crate feature jaeger_remote_sampler
only.
pub fn with_endpoint<Str: Into<String>>(self, endpoint: Str) -> Self
jaeger_remote_sampler
only.The endpoint of remote servers.
By default it’s http://localhost:5778/sampling
.
If the service name is provided as part of the
sourcepub fn with_leaky_bucket_size(self, size: f64) -> Self
Available on crate feature jaeger_remote_sampler
only.
pub fn with_leaky_bucket_size(self, size: f64) -> Self
jaeger_remote_sampler
only.The size of the leaky bucket.
It’s used when sampling strategy is rate limiting.
sourcepub fn build(self) -> Result<Sampler, TraceError>
Available on crate feature jaeger_remote_sampler
only.
pub fn build(self) -> Result<Sampler, TraceError>
jaeger_remote_sampler
only.Build a jaeger remote sampler.
Return errors when the endpoint provided is invalid(e.g, service name is empty)
Trait Implementations
sourceimpl<C: Debug, S: Debug, R: Debug> Debug for JaegerRemoteSamplerBuilder<C, S, R>where
R: TraceRuntime,
C: HttpClient + 'static,
S: ShouldSample + 'static,
impl<C: Debug, S: Debug, R: Debug> Debug for JaegerRemoteSamplerBuilder<C, S, R>where
R: TraceRuntime,
C: HttpClient + 'static,
S: ShouldSample + 'static,
Auto Trait Implementations
impl<C, S, R> RefUnwindSafe for JaegerRemoteSamplerBuilder<C, S, R>where
C: RefUnwindSafe,
R: RefUnwindSafe,
S: RefUnwindSafe,
impl<C, S, R> Send for JaegerRemoteSamplerBuilder<C, S, R>
impl<C, S, R> Sync for JaegerRemoteSamplerBuilder<C, S, R>
impl<C, S, R> Unpin for JaegerRemoteSamplerBuilder<C, S, R>where
C: Unpin,
R: Unpin,
S: Unpin,
impl<C, S, R> UnwindSafe for JaegerRemoteSamplerBuilder<C, S, R>where
C: UnwindSafe,
R: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more