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.methodhttp.response.status_codeuser_agent.original
Structs§
- Header
Extractor - Extracts the
TextMapPropagatorto access trace parent information in HTTP headers. - Header
Injector - Injects the
TextMapPropagatorto propagate trace parent information in HTTP headers. - Response
Future - This future contains the inner service future and the current [
Span]. - Trace
Layer - A Tower
Layerwhich decoratesTraceService. - Trace
Service - A Tower [
Service] which injects Span Context into HTTP Response Headers.
Enums§
- Server
Host Error - Errors which can be encountered when extracting the server host from a [
Request].
Traits§
- Request
Ext - This trait provides various helper functions to extract data from a HTTP [
Request]. - SpanExt
- This trait provides various helper functions to create a [
Span] out of an HTTP [Request].