pub struct ObservabilityConfigBuilder { /* private fields */ }Expand description
Builder for ObservabilityConfig.
Implementations§
Source§impl ObservabilityConfigBuilder
impl ObservabilityConfigBuilder
Sourcepub fn protocol(self, protocol: OtelProtocol) -> Self
pub fn protocol(self, protocol: OtelProtocol) -> Self
Set the wire protocol.
Sourcepub fn service_name(self, name: impl Into<String>) -> Self
pub fn service_name(self, name: impl Into<String>) -> Self
Set the service.name.
Sourcepub fn service_version(self, version: impl Into<String>) -> Self
pub fn service_version(self, version: impl Into<String>) -> Self
Set the service.version.
Sourcepub fn sampling_ratio(self, ratio: f64) -> Self
pub fn sampling_ratio(self, ratio: f64) -> Self
Set the trace-ID-ratio sampling probability (clamped to [0.0, 1.0];
non-finite values fall back to full sampling).
Sourcepub fn verify_presence_oracle(self, verify: bool) -> Self
pub fn verify_presence_oracle(self, verify: bool) -> Self
Enable/disable presence-oracle false-negative verification (issue #2163).
Sourcepub fn build(self) -> ObservabilityConfig
pub fn build(self) -> ObservabilityConfig
Finish building.
Trait Implementations§
Source§impl Clone for ObservabilityConfigBuilder
impl Clone for ObservabilityConfigBuilder
Source§fn clone(&self) -> ObservabilityConfigBuilder
fn clone(&self) -> ObservabilityConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ObservabilityConfigBuilder
impl RefUnwindSafe for ObservabilityConfigBuilder
impl Send for ObservabilityConfigBuilder
impl Sync for ObservabilityConfigBuilder
impl Unpin for ObservabilityConfigBuilder
impl UnsafeUnpin for ObservabilityConfigBuilder
impl UnwindSafe for ObservabilityConfigBuilder
Blanket Implementations§
impl<T> Allocation for T
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