Skip to main content

WithTraceContext

Trait WithTraceContext 

Source
pub trait WithTraceContext {
    // Required method
    fn with_trace_context(self, instance: impl Into<String>) -> Self;
}
Expand description

Helper trait for enriching Problem with trace context

Required Methods§

Source

fn with_trace_context(self, instance: impl Into<String>) -> Self

Enrich this Problem with trace_id and instance from the current request context

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§