Struct tracing_opentelemetry::OtelData
source · 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: ContextThe parent otel Context for the current tracing span.
builder: SpanBuilderThe otel span data recorded during the current tracing span.
Trait Implementations§
Auto Trait Implementations§
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