tower-http-opentelemetry 0.0.1

Tower middleware to emit conventional OpenTelemetry spans and metrics for HTTP and gRPC requests
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "tower-http-opentelemetry"
version = "0.0.1"
authors = ["Stefan Kreutz <mail@skreutz.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tower middleware to emit conventional OpenTelemetry spans and metrics for HTTP and gRPC requests"
readme = "README.md"
keywords = [
    "tower",
    "http",
    "grpc",
    "opentelemetry",
]
categories = [
    "asynchronous",
    "network-programming",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/skreutz/tower-http-opentelemetry"
resolver = "2"

[features]
axum = ["dep:axum"]
default = []

[lib]
name = "tower_http_opentelemetry"
path = "src/lib.rs"

[dependencies.axum]
version = "0.8.9"
features = ["matched-path"]
optional = true
default-features = false

[dependencies.http]
version = "1.5.0"

[dependencies.http-body]
version = "1.1.0"

[dependencies.opentelemetry]
version = "0.32.0"

[dependencies.opentelemetry-http]
version = "0.32.0"

[dependencies.opentelemetry-semantic-conventions]
version = "0.32.1"

[dependencies.pin-project-lite]
version = "0.2.17"

[dependencies.tower-layer]
version = "0.3.3"

[dependencies.tower-service]
version = "0.3.3"

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-opentelemetry]
version = "0.33.0"

[dev-dependencies.bytes]
version = "1.12.1"

[dev-dependencies.http-body-util]
version = "0.1.5"

[dev-dependencies.tokio]
version = "1.53.1"
features = ["full"]

[dev-dependencies.tower]
version = "0.5.3"
features = ["full"]

[dev-dependencies.tracing-subscriber]
version = "0.3.23"

[lints.rust]
unsafe_code = "forbid"