sqlx-tracing 0.1.0

OpenTelemetry-compatible tracing for SQLx database operations in Rust.
Documentation
[dependencies.futures]
version = "0.3"

[dependencies.sqlx]
default-features = false
features = ["derive"]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.opentelemetry]
version = "0.30"

[dev-dependencies.opentelemetry-appender-tracing]
features = ["experimental_metadata_attributes", "experimental_use_tracing_span_context"]
version = "0.30"

[dev-dependencies.opentelemetry-otlp]
features = ["grpc-tonic"]
version = "0.30"

[dev-dependencies.opentelemetry-semantic-conventions]
version = "0.30"

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

[dev-dependencies.serial_test]
version = "3.2"

[dev-dependencies.sqlx]
features = ["runtime-tokio"]
version = "0.8"

[dev-dependencies.tempfile]
version = "3.21"

[dev-dependencies.testcontainers]
version = "0.25"

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

[dev-dependencies.tracing-opentelemetry]
version = "0.31"

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

[features]
default = []
postgres = ["sqlx/postgres"]
sqlite = ["sqlx/sqlite"]

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

[package]
authors = ["Jérémie Drouet <jeremie.drouet@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["database", "development-tools::debugging", "development-tools::profiling", "asynchronous"]
description = "OpenTelemetry-compatible tracing for SQLx database operations in Rust."
documentation = "https://docs.rs/sqlx-tracing"
edition = "2024"
homepage = "https://github.com/jdrouet/sqlx-tracing"
keywords = ["sqlx", "tracing", "opentelemetry", "database", "observability"]
license = "MIT"
name = "sqlx-tracing"
readme = "README.md"
repository = "https://github.com/jdrouet/sqlx-tracing"
version = "0.1.0"

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

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

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