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§
- Extracts the
TextMapPropagator
to access trace parent information in HTTP headers. - Injects the
TextMapPropagator
to propagate trace parent information in HTTP headers. - This future contains the inner service future and the current [
Span
]. - A Tower
Layer
which decoratesTraceService
. - A Tower [
Service
] which injects Span Context into HTTP Response Headers.
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
].