Trait OpenTelemetrySpanExt

Source
pub trait OpenTelemetrySpanExt: Sealed {
    // Required methods
    fn set_attribute(&self, key: impl Into<Key>, value: impl ToValue);
    fn set_error(&self, err: &dyn Error);
}
Expand description

Utility functions based on tracing_opentelemetry::OpenTelemetrySpanExt.

This is a sealed trait. It and cannot be implemented outside of this module.

Required Methods§

Source

fn set_attribute(&self, key: impl Into<Key>, value: impl ToValue)

Source

fn set_error(&self, err: &dyn Error)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§