pub trait TraceStore: Send + Sync {
// Required method
fn record_span<'life0, 'async_trait>(
&'life0 self,
span: SpanRecord,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
// Provided method
fn record_event<'life0, 'async_trait>(
&'life0 self,
_event: EventRecord,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
}Required Methods§
fn record_span<'life0, 'async_trait>(
&'life0 self,
span: SpanRecord,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Provided Methods§
Sourcefn record_event<'life0, 'async_trait>(
&'life0 self,
_event: EventRecord,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn record_event<'life0, 'async_trait>(
&'life0 self,
_event: EventRecord,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Record an intra-span event. Defaults to a no-op so existing stores keep compiling; stores that support events override this.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".