pub struct ExecutionTelemetry { /* private fields */ }Expand description
Opt-in worker telemetry using an application-owned tracer.
This value is cloneable; it never shuts down or replaces a global provider. No exporter is required; official W3C validation uses the SDK propagators.
Implementations§
Source§impl ExecutionTelemetry
impl ExecutionTelemetry
Sourcepub fn new() -> Self
pub fn new() -> Self
Snapshot the application’s current global tracer provider. Configure it before constructing this value. An unconfigured provider emits no spans.
Sourcepub fn from_tracer<T>(tracer: T) -> Self
pub fn from_tracer<T>(tracer: T) -> Self
Use a tracer without changing any application globals.
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Disable spans and propagation without changing business execution.
Sourcepub fn with_baggage_allowlist(self, keys: Vec<String>) -> Self
pub fn with_baggage_allowlist(self, keys: Vec<String>) -> Self
Retain only these baggage keys on admission/run parents. Default empty.
Trait Implementations§
Source§impl Clone for ExecutionTelemetry
impl Clone for ExecutionTelemetry
Source§fn clone(&self) -> ExecutionTelemetry
fn clone(&self) -> ExecutionTelemetry
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 ExecutionTelemetry
impl Debug for ExecutionTelemetry
Auto Trait Implementations§
impl Freeze for ExecutionTelemetry
impl !RefUnwindSafe for ExecutionTelemetry
impl Send for ExecutionTelemetry
impl Sync for ExecutionTelemetry
impl Unpin for ExecutionTelemetry
impl !UnwindSafe for ExecutionTelemetry
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