diff options
author | Alex Auvolat <alex@adnab.me> | 2022-02-17 23:28:23 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-03-14 10:52:13 +0100 |
commit | 8c2fb0c066af7f68fdcfcdec96fa030af059bf63 (patch) | |
tree | 58a416058e31eda2cdb3a15c07e565a9ad674857 /src/table | |
parent | b6561f6e1bcb6a8de13a186405a480e356df89d8 (diff) | |
download | garage-8c2fb0c066af7f68fdcfcdec96fa030af059bf63.tar.gz garage-8c2fb0c066af7f68fdcfcdec96fa030af059bf63.zip |
Add tracing integration with opentelemetry
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/Cargo.toml | 2 | ||||
-rw-r--r-- | src/table/data.rs | 1 | ||||
-rw-r--r-- | src/table/lib.rs | 2 | ||||
-rw-r--r-- | src/table/merkle.rs | 1 |
4 files changed, 2 insertions, 4 deletions
diff --git a/src/table/Cargo.toml b/src/table/Cargo.toml index f6f9974d..bc09ca7c 100644 --- a/src/table/Cargo.toml +++ b/src/table/Cargo.toml @@ -22,7 +22,7 @@ opentelemetry = "0.17" async-trait = "0.1.7" bytes = "1.0" hexdump = "0.1" -log = "0.4" +tracing = "0.1.30" rand = "0.8" sled = "0.34" diff --git a/src/table/data.rs b/src/table/data.rs index 684afdcd..4293e395 100644 --- a/src/table/data.rs +++ b/src/table/data.rs @@ -1,7 +1,6 @@ use core::borrow::Borrow; use std::sync::Arc; -use log::warn; use serde_bytes::ByteBuf; use sled::Transactional; use tokio::sync::Notify; diff --git a/src/table/lib.rs b/src/table/lib.rs index e0920357..b0153e9a 100644 --- a/src/table/lib.rs +++ b/src/table/lib.rs @@ -2,7 +2,7 @@ #![allow(clippy::comparison_chain)] #[macro_use] -extern crate log; +extern crate tracing; mod metrics; pub mod schema; diff --git a/src/table/merkle.rs b/src/table/merkle.rs index 5ec6ab61..93bf7e47 100644 --- a/src/table/merkle.rs +++ b/src/table/merkle.rs @@ -3,7 +3,6 @@ use std::time::Duration; use futures::select; use futures_util::future::*; -use log::{debug, warn}; use serde::{Deserialize, Serialize}; use sled::transaction::{ ConflictableTransactionError, ConflictableTransactionResult, TransactionalTree, |