Struct tracing_actix_web::DefaultRootSpanBuilder [−][src]
pub struct DefaultRootSpanBuilder;
The default RootSpanBuilder for TracingLogger.
It captures:
- HTTP method (
http.method); - HTTP route (
http.route), with templated parameters; - HTTP version (
http.flavor); - HTTP host (
http.host); - Client IP (
http.client_ip); - User agent (
http.user_agent); - Request path (
http.target); - Status code (
http.status_code); - Request id (
request_id); - OpenTelemetry trace identifier (
trace_id). Empty if the feature is not enabled; - OpenTelemetry span kind, set to
server(otel.kind).
All field names follow OpenTelemetry’s semantic convention.
Trait Implementations
impl RootSpanBuilder for DefaultRootSpanBuilder[src]
impl RootSpanBuilder for DefaultRootSpanBuilder[src]fn on_request_start(request: &ServiceRequest) -> Span[src]
fn on_request_end<B>(span: Span, outcome: &Result<ServiceResponse<B>, Error>)[src]
Auto Trait Implementations
impl RefUnwindSafe for DefaultRootSpanBuilder
impl RefUnwindSafe for DefaultRootSpanBuilderimpl Send for DefaultRootSpanBuilder
impl Send for DefaultRootSpanBuilderimpl Sync for DefaultRootSpanBuilder
impl Sync for DefaultRootSpanBuilderimpl Unpin for DefaultRootSpanBuilder
impl Unpin for DefaultRootSpanBuilderimpl UnwindSafe for DefaultRootSpanBuilder
impl UnwindSafe for DefaultRootSpanBuilderBlanket Implementations
impl<T> FutureExt for T[src]
impl<T> FutureExt for T[src]pub fn with_context(self, otel_cx: Context) -> WithContext<Self>[src]
pub fn with_current_context(self) -> WithContext<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,