Skip to main content

Crate tower_http_opentelemetry

Crate tower_http_opentelemetry 

Source
Expand description

Tower middleware to instrument HTTP clients and servers with conventional OpenTelemetry spans and metrics.

§Overview

This crate provides Tower Layers for HTTP clients and servers. The layers emit spans and metrics conforminig to the OpenTelemetry semantic conventions.

See the module documentation for HTTP client and HTTP server instrumentation for more information.

See also the project repository for an introduction, and various example applications.

§Feature flags

This crate provides the following feature flags:

  • axum enables axum-specific integration.
  • tokio enables tokio-specific integration with axum.

All feature flags are disabled by default.

Modules§

common
Common items.
extract
Extractors.
http
HTTP client and server instrumentation.