[package]
name = "opentelemetry"
version = "0.27.0"
description = "OpenTelemetry API for Rust"
homepage = "https://github.com/open-telemetry/opentelemetry-rust"
repository = "https://github.com/open-telemetry/opentelemetry-rust"
readme = "README.md"
categories = [
"development-tools::debugging",
"development-tools::profiling",
"api-bindings",
"asynchronous",
]
keywords = ["opentelemetry", "logging", "tracing", "metrics"]
license = "Apache-2.0"
edition = "2021"
rust-version = "1.70"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
futures-core = { workspace = true }
futures-sink = "0.3"
once_cell = { workspace = true }
pin-project-lite = { workspace = true, optional = true }
thiserror = { workspace = true }
tracing = {workspace = true, optional = true}
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies]
js-sys = "0.3.63"
[features]
default = ["trace", "metrics", "logs"]
trace = ["pin-project-lite"]
metrics = []
testing = ["trace", "metrics"]
logs = []
spec_unstable_logs_enabled = ["logs"]
otel_unstable = []
internal-logs = ["tracing"]
[dev-dependencies]
opentelemetry_sdk = { path = "../opentelemetry-sdk", features = ["spec_unstable_logs_enabled"]}
criterion = { workspace = true }
rand = { workspace = true }
[[bench]]
name = "metrics"
harness = false
required-features = ["metrics"]
[[bench]]
name = "attributes"
harness = false
[[bench]]
name = "anyvalue"
harness = false