Struct mick_jaeger::TracesIn
source · [−]pub struct TracesIn { /* private fields */ }
Implementations
sourceimpl TracesIn
impl TracesIn
sourcepub fn span(
self: &Arc<Self>,
trace_id: NonZeroU128,
operation_name: impl Into<String>
) -> Span
pub fn span(
self: &Arc<Self>,
trace_id: NonZeroU128,
operation_name: impl Into<String>
) -> Span
Builds a new Span
.
Must be passed a trace_id
that is used to group spans together. Its meaning is
arbitrary.
sourcepub fn span_with_id(
self: &Arc<Self>,
trace_id: NonZeroU128,
span_id: NonZeroU64,
operation_name: impl Into<String>
) -> Span
pub fn span_with_id(
self: &Arc<Self>,
trace_id: NonZeroU128,
span_id: NonZeroU64,
operation_name: impl Into<String>
) -> Span
Builds a new Span
, using a specific span ID.
Use this method when it is required to know the ID of a span, for example when building links between spans across different services.
sourcepub fn span_with_parent(
self: &Arc<Self>,
trace_id: NonZeroU128,
parent_id: Option<NonZeroU64>,
operation_name: impl Into<String>
) -> Span
pub fn span_with_parent(
self: &Arc<Self>,
trace_id: NonZeroU128,
parent_id: Option<NonZeroU64>,
operation_name: impl Into<String>
) -> Span
Builds a new Span
, whose parent uses a specific span ID.
A parent_id
equal to 0 means “no parent”.
sourcepub fn span_with_id_and_parent(
self: &Arc<Self>,
trace_id: NonZeroU128,
span_id: NonZeroU64,
parent_id: Option<NonZeroU64>,
operation_name: impl Into<String>
) -> Span
pub fn span_with_id_and_parent(
self: &Arc<Self>,
trace_id: NonZeroU128,
span_id: NonZeroU64,
parent_id: Option<NonZeroU64>,
operation_name: impl Into<String>
) -> Span
Builds a new Span
, with a specific ID whose parent uses a specific span ID.
A parent_id
equal to 0 means “no parent”.
Auto Trait Implementations
impl RefUnwindSafe for TracesIn
impl Send for TracesIn
impl Sync for TracesIn
impl Unpin for TracesIn
impl UnwindSafe for TracesIn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more