pub struct JaegerRemoteSamplerBuilder<C, S, R>{ /* private fields */ }
Available on crate feature
trace
only.Expand description
Builder for JaegerRemoteSampler
.
See Sampler::jaeger_remote for details.
Implementations§
source§impl<C, S, R> JaegerRemoteSamplerBuilder<C, S, R>
impl<C, S, R> JaegerRemoteSamplerBuilder<C, S, R>
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 service name is provided as part of the endpoint, it will be ignored.
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.
By default the size is 100.
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 JaegerRemoteSampler using provided configuration.
Return errors if:
- the endpoint provided is empty.
- the service name provided is empty.
Trait Implementations§
source§impl<C, S, R> Debug for JaegerRemoteSamplerBuilder<C, S, R>where
R: RuntimeChannel + Debug,
C: HttpClient + 'static + Debug,
S: ShouldSample + 'static + Debug,
impl<C, S, R> Debug for JaegerRemoteSamplerBuilder<C, S, R>where
R: RuntimeChannel + Debug,
C: HttpClient + 'static + Debug,
S: ShouldSample + 'static + Debug,
Auto Trait Implementations§
impl<C, S, R> RefUnwindSafe for JaegerRemoteSamplerBuilder<C, S, R>
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>
impl<C, S, R> UnwindSafe for JaegerRemoteSamplerBuilder<C, S, R>
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