# 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 = "telemetry-batteries"
version = "0.3.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Batteries included library to configure tracing, logs and metrics"
readme = "README.md"
license = "MIT OR (Apache-2.0 WITH LLVM-exception)"
repository = "https://github.com/worldcoin/telemetry-batteries"

[features]
default = [
    "metrics-prometheus",
    "metrics-statsd",
]
metrics-prometheus = ["dep:metrics-exporter-prometheus"]
metrics-statsd = ["dep:metrics-exporter-statsd"]

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

[[example]]
name = "axum_tracing"
path = "examples/axum_tracing.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "panic_example"
path = "examples/panic_example.rs"

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

[dependencies.backtrace]
version = "0.3"

[dependencies.bon]
version = "3"

[dependencies.chrono]
version = "0.4"

[dependencies.dirs]
version = "5"

[dependencies.eyre]
version = "0.6"

[dependencies.http]
version = "1"

[dependencies.metrics]
version = "0.24"

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

[dependencies.metrics-exporter-statsd]
version = "0.9"
optional = true

[dependencies.opentelemetry]
version = "0.31"

[dependencies.opentelemetry-datadog]
version = "0.19"
features = ["reqwest-client"]

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

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

[dependencies.pin-project]
version = "1"

[dependencies.rand]
version = "0.9"

[dependencies.reqwest]
version = "0.12"
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "signal",
]

[dependencies.tower]
version = "0.5"

[dependencies.tracing]
version = "0.1"

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

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

[dependencies.tracing-opentelemetry-instrumentation-sdk]
version = "0.32"
features = ["http"]

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

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

[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.axum]
version = "0.8"
