Skip to content

Commit

Permalink
Initialize tracing in integration test setup (#23)
Browse files Browse the repository at this point in the history
* initialize tracing in integration test setup

* use info stream for top level requests and responses; standardize on what info is sent and how it's formatted

* use atomic compare exchange to only initialize tracing once during tests

* compare exchange returns Ok if exchange happened with old value not new; turn logging down to WARN in tests so we don't spam

* use env-filter so we can control logging using standard RUST_LOG semantics
  • Loading branch information
xoloki authored Oct 3, 2023
1 parent 8167a32 commit e87f997
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 91 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ serde = { version = "1.0", features = ["derive"] }
sha2 = "0.10"
thiserror = "1.0"
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }

[dev-dependencies]
criterion = "0.5.1"
Expand Down
Loading

0 comments on commit e87f997

Please sign in to comment.