stackable_telemetry::instrumentation

Module axum

Source
Expand description

This module contains types which can be used as [axum] layers to produce OpenTelemetry compatible HTTP spans.

These spans include a wide variety of fields / attributes defined by the semantic conventions specification. A few examples are:

  • http.request.method
  • http.response.status_code
  • user_agent.original

Structs§

Enums§

  • Errors which can be encountered when extracting the server host from a [Request].

Traits§

  • This trait provides various helper functions to extract data from a HTTP [Request].
  • This trait provides various helper functions to create a [Span] out of an HTTP [Request].