[package] name = "qrt-log-utils" version = "0.2.2" edition = "2021" repository = "https://github.com/qiaoruntao/qrt-log-utils" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html license = "MIT" keywords = ["log", "utils"] description = "qrt's log utils" [dependencies] tracing = "0" tracing-subscriber = { version = "0.3", features = ["env-filter", "time"] } time = { version = "0" } #console-subscriber = { version = "0", optional = true } # opentelemetry related dependencies opentelemetry = { version = "0.20", features = ["rt-tokio", "metrics"] } opentelemetry_sdk = { version = "0.20", features = ["rt-tokio", "metrics"], optional = true } opentelemetry-otlp = { version = "0.13", features = ["tls-roots"], optional = true } tracing-opentelemetry = { version = "0.20", optional = true } # opentelemetry metrics opentelemetry-prometheus = "0.13" prometheus = "0" actix-web-opentelemetry = { version = "0.15", features = ["metrics", "metrics-prometheus"] } actix-web = "4" tokio = "1" once_cell = { version = "1", optional = true } tonic = { version = "0.9", optional = true } # detect-hostname related dependencies hostname = { version = "0", optional = true } # temp fix tracing-subscriber #regex = { version = "1", features = ["unicode-case"] } [dev-dependencies] tokio = { version = "1", features = ["full"] } time = { version = "0" } [features] # disable other logging by default default = ["honeycomb-log", "detect-host"] #tokio-debug = ["dep:console-subscriber"] honeycomb-log = ["dep:opentelemetry_sdk", "dep:opentelemetry-otlp", "dep:tracing-opentelemetry", "dep:once_cell", "dep:tonic"] #honeycomb-log = ["dep:opentelemetry", "dep:opentelemetry_sdk", "dep:opentelemetry-otlp", "dep:tracing-opentelemetry", "dep:once_cell", "dep:tonic"] detect-host = ["dep:hostname"]