pub struct EmitOpts {
pub request_id: Option<RequestId>,
pub causes: Vec<u64>,
pub span_id: Option<SpanId>,
pub resource: Option<ResourceRef>,
pub cost_estimate_ns: Option<u64>,
pub confidence: Option<f32>,
}Expand description
Options that enrich an emitted event.
Fields§
§request_id: Option<RequestId>Correlated request id.
causes: Vec<u64>Causal links to earlier event seqs (max 2 on the hot path).
span_id: Option<SpanId>Span id (for Begin/End pairing).
resource: Option<ResourceRef>Resource reference.
cost_estimate_ns: Option<u64>Estimated/measured cost in ns.
confidence: Option<f32>Prediction confidence 0..1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmitOpts
impl RefUnwindSafe for EmitOpts
impl Send for EmitOpts
impl Sync for EmitOpts
impl Unpin for EmitOpts
impl UnsafeUnpin for EmitOpts
impl UnwindSafe for EmitOpts
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