pub struct OtelData {
pub parent_cx: Context,
pub builder: SpanBuilder,
}
Expand description
Per-span OpenTelemetry data tracked by this crate.
Useful for implementing PreSampledTracer in alternate otel SDKs.
Fields§
§parent_cx: Context
The parent otel Context
for the current tracing span.
builder: SpanBuilder
The otel span data recorded during the current tracing span.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OtelData
impl !RefUnwindSafe for OtelData
impl Send for OtelData
impl Sync for OtelData
impl Unpin for OtelData
impl !UnwindSafe for OtelData
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