pub trait RootSpanBuilder {
// Required methods
fn on_request_start(request: &ServiceRequest) -> Span;
fn on_request_end<B: MessageBody>(
span: Span,
outcome: &Result<ServiceResponse<B>, Error>,
);
}
Expand description
RootSpanBuilder
allows you to customise the root span attached by
TracingLogger
to incoming requests.
Required Methods§
fn on_request_start(request: &ServiceRequest) -> Span
fn on_request_end<B: MessageBody>( span: Span, outcome: &Result<ServiceResponse<B>, 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.