# 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"
name = "cala-tracing"
version = "0.9.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tracing library powering cala stack"
readme = false
license = "Apache-2.0"
repository = "https://github.com/GaloyMoney/cala"

[features]
fail-on-warnings = []
grpc = ["dep:tonic"]
http = [
    "dep:opentelemetry-http",
    "dep:http",
]

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

[dependencies.anyhow]
version = "1.0.99"

[dependencies.axum-extra]
version = "0.9.4"
features = [
    "tracing",
    "typed-header",
]
default-features = false

[dependencies.http]
version = "1.3.1"
optional = true

[dependencies.opentelemetry]
version = "0.30.0"

[dependencies.opentelemetry-http]
version = "0.30.0"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.30.0"
features = [
    "http-proto",
    "grpc-tonic",
    "reqwest-client",
]
default-features = false

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

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

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

[dependencies.serde_json]
version = "1.0.143"

[dependencies.tonic]
version = "0.13.1"
optional = true

[dependencies.tracing]
version = "0.1.41"

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

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