From 8c2fb0c066af7f68fdcfcdec96fa030af059bf63 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 17 Feb 2022 23:28:23 +0100 Subject: Add tracing integration with opentelemetry --- src/table/Cargo.toml | 2 +- src/table/data.rs | 1 - src/table/lib.rs | 2 +- src/table/merkle.rs | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/table') 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, -- cgit v1.2.3