[][src]Struct opentelemetry::global::BoxedSpan

pub struct BoxedSpan(_);

Wraps the BoxedTracer's Span so it can be used generically by applications without knowing the underlying type.

Trait Implementations

impl Debug for BoxedSpan[src]

impl Span for BoxedSpan[src]

pub fn add_event_with_timestamp(
    &self,
    name: String,
    timestamp: SystemTime,
    attributes: Vec<KeyValue>
)
[src]

This is supported on crate feature trace only.

Records events at a specific time in the context of a given Span.

Note that the OpenTelemetry project documents certain "standard event names and keys" which have prescribed semantic meanings.

pub fn span_context(&self) -> &SpanContext[src]

This is supported on crate feature trace only.

Returns the SpanContext for the given Span.

pub fn is_recording(&self) -> bool[src]

This is supported on crate feature trace only.

Returns true if this Span is recording information like events with the add_event operation, attributes using set_attributes, status with set_status, etc.

pub fn set_attribute(&self, attribute: KeyValue)[src]

This is supported on crate feature trace only.

Sets a single Attribute where the attribute properties are passed as arguments.

Note that the OpenTelemetry project documents certain "standard attributes" that have prescribed semantic meanings.

pub fn set_status(&self, code: StatusCode, message: String)[src]

This is supported on crate feature trace only.

Sets the status of the Span. If used, this will override the default Span status, which is Unset.

pub fn update_name(&self, new_name: String)[src]

This is supported on crate feature trace only.

Updates the Span's name.

pub fn end_with_timestamp(&self, timestamp: SystemTime)[src]

This is supported on crate feature trace only.

Finishes the span with given timestamp.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,