这是indexloc提供的服务,不要输入任何密码
Skip to content

enable mongo driver tracing #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
This changelog documents the changes between release versions.

## [Unreleased]
- Enables logging events from the MongoDB driver by setting the `RUST_LOG` variable ([#67](https://github.com/hasura/ndc-mongodb/pull/67))
- To log all events set `RUST_LOG=mongodb::command=debug,mongodb::connection=debug,mongodb::server_selection=debug,mongodb::topology=debug`

## [0.0.5] - 2024-04-26
- Fix incorrect order of results for query requests with more than 10 variable sets (#37)
Expand Down
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ndc-sdk = { git = "https://github.com/hasura/ndc-sdk-rs.git" }
ndc-models = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.2" }

itertools = "^0.12.1"
mongodb = { version = "2.8", features = ["tracing-unstable"] }

# Connecting to MongoDB Atlas database with time series collections fails in the
# latest released version of the MongoDB Rust driver. A fix has been merged, but
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version.workspace = true
[dependencies]
configuration = { path = "../configuration" }
mongodb-agent-common = { path = "../mongodb-agent-common" }
mongodb = "2.8"
mongodb = { workspace = true }
mongodb-support = { path = "../mongodb-support" }

anyhow = "1.0.80"
Expand Down
2 changes: 1 addition & 1 deletion crates/configuration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
anyhow = "1"
futures = "^0.3"
itertools = { workspace = true }
mongodb = "2.8"
mongodb = { workspace = true }
mongodb-support = { path = "../mongodb-support" }
ndc-models = { workspace = true }
schemars = "^0.8.12"
Expand Down
2 changes: 1 addition & 1 deletion crates/dc-api-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ serde_with = "3"

[dev-dependencies]
anyhow = "1"
mongodb = "2"
mongodb = { workspace = true }
pretty_assertions = "1"
2 changes: 1 addition & 1 deletion crates/mongodb-agent-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ http = "^0.2"
indexmap = { version = "1", features = ["serde"] } # must match the version that ndc-client uses
indent = "^0.1"
itertools = { workspace = true }
mongodb = "2.8"
mongodb = { workspace = true }
once_cell = "1"
regex = "1"
schemars = { version = "^0.8.12", features = ["smol_str"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/mongodb-connector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ http = "^0.2"
indexmap = { version = "2.1.0", features = ["serde"] }
itertools = { workspace = true }
lazy_static = "^1.4.0"
mongodb = "2.8"
mongodb = { workspace = true }
mongodb-agent-common = { path = "../mongodb-agent-common" }
mongodb-support = { path = "../mongodb-support" }
ndc-sdk = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/mongodb-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
dc-api-types = { path = "../dc-api-types" }
enum-iterator = "^2.0.0"
indexmap = { version = "1", features = ["serde"] } # must match the version that ndc-client uses
mongodb = "2.8"
mongodb = { workspace = true }
schemars = "^0.8.12"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
Expand Down
2 changes: 1 addition & 1 deletion crates/test-helpers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ configuration = { path = "../configuration" }
mongodb-support = { path = "../mongodb-support" }

enum-iterator = "^2.0.0"
mongodb = "2.8"
mongodb = { workspace = true }
proptest = "1"