aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-17 23:28:23 +0100
committerAlex Auvolat <alex@adnab.me>2022-03-14 10:52:13 +0100
commit8c2fb0c066af7f68fdcfcdec96fa030af059bf63 (patch)
tree58a416058e31eda2cdb3a15c07e565a9ad674857 /src/util
parentb6561f6e1bcb6a8de13a186405a480e356df89d8 (diff)
downloadgarage-8c2fb0c066af7f68fdcfcdec96fa030af059bf63.tar.gz
garage-8c2fb0c066af7f68fdcfcdec96fa030af059bf63.zip
Add tracing integration with opentelemetry
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Cargo.toml2
-rw-r--r--src/util/config.rs2
-rw-r--r--src/util/lib.rs2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/util/Cargo.toml b/src/util/Cargo.toml
index 4e3c8c25..3cc2031d 100644
--- a/src/util/Cargo.toml
+++ b/src/util/Cargo.toml
@@ -18,7 +18,7 @@ blake2 = "0.9"
err-derive = "0.3"
xxhash-rust = { version = "0.8", default-features = false, features = ["xxh3"] }
hex = "0.4"
-log = "0.4"
+tracing = "0.1.30"
rand = "0.8"
sha2 = "0.9"
diff --git a/src/util/config.rs b/src/util/config.rs
index 2d15748f..e763fcd5 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -104,6 +104,8 @@ pub struct WebConfig {
pub struct AdminConfig {
/// Address and port to bind for admin API serving
pub bind_addr: SocketAddr,
+ /// OTLP server to where to export traces
+ pub otlp_export_traces_to: Option<String>,
}
fn default_sled_cache_capacity() -> u64 {
diff --git a/src/util/lib.rs b/src/util/lib.rs
index 64874095..6856f656 100644
--- a/src/util/lib.rs
+++ b/src/util/lib.rs
@@ -1,7 +1,7 @@
//! Crate containing common functions and types used in Garage
#[macro_use]
-extern crate log;
+extern crate tracing;
pub mod background;
pub mod config;