zlayer-observability 0.10.76

OpenTelemetry tracing and Prometheus metrics for ZLayer
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 = "2021"
rust-version = "1.85"
name = "zlayer-observability"
version = "0.10.76"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OpenTelemetry tracing and Prometheus metrics for ZLayer"
readme = "README.md"
keywords = [
    "opentelemetry",
    "prometheus",
    "metrics",
    "tracing",
    "observability",
]
categories = ["development-tools::profiling"]
license = "Apache-2.0"
repository = "https://github.com/zachhandley/ZLayer"

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

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

[dependencies.axum]
version = "0.8"
features = [
    "macros",
    "ws",
    "multipart",
]
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.config]
version = "0.15"

[dependencies.http]
version = "1"

[dependencies.metrics]
version = "0.24"

[dependencies.metrics-exporter-prometheus]
version = "0.18"

[dependencies.opentelemetry]
version = "0.31"

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "grpc-tonic",
    "trace",
]

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]

[dependencies.prometheus]
version = "0.13"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.49"
features = [
    "full",
    "tracing",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-appender]
version = "0.2"

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

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
    "fmt",
]

[lints.clippy]
all = "warn"
pedantic = "warn"

[lints.rust]
dead_code = "warn"
unsafe_code = "warn"