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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]