otel-bootstrap 0.4.0

One-call OpenTelemetry bootstrap — traces + metrics with OTLP export
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"
rust-version = "1.85"
name = "otel-bootstrap"
version = "0.4.0"
authors = ["Gregoire Salingue"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "One-call OpenTelemetry bootstrap — traces + metrics with OTLP export"
homepage = "https://github.com/brefwiz/otel-bootstrap"
documentation = "https://docs.rs/otel-bootstrap"
readme = "README.md"
keywords = [
    "opentelemetry",
    "otlp",
    "tracing",
    "observability",
    "axum",
]
categories = [
    "development-tools::debugging",
    "development-tools::profiling",
]
license = "MIT"
repository = "https://github.com/brefwiz/otel-bootstrap"

[features]
axum = [
    "dep:axum",
    "dep:tower",
]
default = ["grpc"]
grpc = ["opentelemetry-otlp/grpc-tonic"]
http = [
    "opentelemetry-otlp/http-proto",
    "opentelemetry-otlp/reqwest-client",
]
integration-tests = []
org-context = ["dep:api-bones"]
testing = ["opentelemetry_sdk/testing"]

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

[[example]]
name = "axum_org_context"
path = "examples/axum_org_context.rs"
required-features = [
    "grpc",
    "axum",
    "org-context",
]

[[example]]
name = "basic_setup"
path = "examples/basic_setup.rs"
required-features = ["grpc"]

[[example]]
name = "custom_config"
path = "examples/custom_config.rs"
required-features = ["grpc"]

[[example]]
name = "shutdown_handling"
path = "examples/shutdown_handling.rs"
required-features = ["grpc"]

[[test]]
name = "axum_middleware"
path = "tests/axum_middleware.rs"

[[test]]
name = "builder"
path = "tests/builder.rs"

[[test]]
name = "e2e"
path = "tests/e2e.rs"

[[test]]
name = "propagation"
path = "tests/propagation.rs"

[[test]]
name = "span_enrichment"
path = "tests/span_enrichment.rs"

[[test]]
name = "testing"
path = "tests/testing.rs"

[dependencies.api-bones]
version = "4.0.1"
features = [
    "std",
    "uuid",
]
optional = true
default-features = false

[dependencies.axum]
version = "=0.8"
optional = true

[dependencies.hostname]
version = "0.4"

[dependencies.opentelemetry]
version = "0.31"
features = [
    "metrics",
    "logs",
]

[dependencies.opentelemetry-appender-tracing]
version = "0.31"

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "metrics",
    "logs",
]

[dependencies.opentelemetry-semantic-conventions]
version = "0.31"
features = ["semconv_experimental"]

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

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.tracing]
version = "0.1"

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

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

[dev-dependencies.api-bones]
version = "4.0.1"
features = [
    "std",
    "uuid",
]
default-features = false

[dev-dependencies.opentelemetry]
version = "0.31"
features = ["trace"]

[dev-dependencies.serde_json]
version = "1"

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

[dev-dependencies.tracing]
version = "0.1"

[dev-dependencies.uuid]
version = "1"
features = ["v4"]