[][src]Trait opentelemetry::api::trace::span::Span

pub trait Span: Debug {
    fn id(&self) -> u64;
fn parent(&self) -> Option<u64>;
fn add_event_with_timestamp(
        &mut self,
        message: String,
        timestamp: SystemTime
    );
fn get_context(&self) -> SpanContext;
fn is_recording(&self) -> bool;
fn set_attribute(&mut self, attribute: KeyValue);
fn end(&mut self); fn add_event(&mut self, message: String) { ... } }

Required methods

fn id(&self) -> u64

fn parent(&self) -> Option<u64>

fn add_event_with_timestamp(&mut self, message: String, timestamp: SystemTime)

fn get_context(&self) -> SpanContext

fn is_recording(&self) -> bool

fn set_attribute(&mut self, attribute: KeyValue)

fn end(&mut self)

Loading content...

Provided methods

fn add_event(&mut self, message: String)

Loading content...

Implementors

impl Span for NoopSpan[src]

impl Span for BoxedSpan[src]

impl Span for Span[src]

Loading content...