[package]
edition = "2024"
name = "sqlx-tracing"
version = "0.2.1"
authors = ["Jérémie Drouet <jeremie.drouet@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OpenTelemetry-compatible tracing for SQLx database operations in Rust."
homepage = "https://github.com/jdrouet/sqlx-tracing"
documentation = "https://docs.rs/sqlx-tracing"
readme = "README.md"
keywords = [
"sqlx",
"tracing",
"opentelemetry",
"database",
"observability",
]
categories = [
"database",
"development-tools::debugging",
"development-tools::profiling",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/jdrouet/sqlx-tracing"
[features]
mysql = ["sqlx/mysql"]
postgres = ["sqlx/postgres"]
sqlite = ["sqlx/sqlite"]
[lib]
name = "sqlx_tracing"
path = "src/lib.rs"
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "mysql"
path = "tests/mysql.rs"
[[test]]
name = "postgres"
path = "tests/postgres.rs"
[[test]]
name = "sqlite"
path = "tests/sqlite.rs"
[dependencies.futures]
version = "0.3"
[dependencies.sqlx]
version = "0.8"
features = ["derive"]
default-features = false
[dependencies.tracing]
version = "0.1"
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.opentelemetry]
version = "0.30"
[dev-dependencies.opentelemetry-testing]
version = "0.1"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.serial_test]
version = "3.4"
[dev-dependencies.sqlx]
version = "0.8"
features = ["runtime-tokio"]
[dev-dependencies.testcontainers]
version = "0.25"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
]