aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-22 17:34:46 +0100
committerAlex Auvolat <alex@adnab.me>2022-03-14 10:54:11 +0100
commit0cc31ee16994d11f4446186c817d8492b0b54f6b (patch)
tree69899a65c04db7ffec1fcbbac77c73f24f77bf51 /src
parentdc8d0496ccd1b577fe6c0a1c172a8794531fa0a6 (diff)
downloadgarage-0cc31ee16994d11f4446186c817d8492b0b54f6b.tar.gz
garage-0cc31ee16994d11f4446186c817d8492b0b54f6b.zip
add missing netapp telemetry feature
Diffstat (limited to 'src')
-rw-r--r--src/admin/tracing_setup.rs3
-rw-r--r--src/rpc/Cargo.toml2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/admin/tracing_setup.rs b/src/admin/tracing_setup.rs
index c561d568..55fc4094 100644
--- a/src/admin/tracing_setup.rs
+++ b/src/admin/tracing_setup.rs
@@ -1,7 +1,7 @@
use std::time::Duration;
use opentelemetry::sdk::{
- trace::{self, IdGenerator},
+ trace::{self, IdGenerator, Sampler},
Resource,
};
use opentelemetry::KeyValue;
@@ -24,6 +24,7 @@ pub fn init_tracing(export_to: &str, node_id: Uuid) -> Result<(), Error> {
.with_trace_config(
trace::config()
.with_id_generator(IdGenerator::default())
+ .with_sampler(Sampler::AlwaysOn)
.with_resource(Resource::new(vec![
KeyValue::new("service.name", "garage"),
KeyValue::new("service.instance.id", node_id),
diff --git a/src/rpc/Cargo.toml b/src/rpc/Cargo.toml
index 94d6f682..72393921 100644
--- a/src/rpc/Cargo.toml
+++ b/src/rpc/Cargo.toml
@@ -48,7 +48,7 @@ opentelemetry = "0.17"
#netapp = { version = "0.3.0", git = "https://git.deuxfleurs.fr/lx/netapp" }
#netapp = { version = "0.4", path = "../../../netapp", features = ["telemetry"] }
-netapp = "0.4"
+netapp = { version = "0.4", features = ["telemetry"] }
hyper = { version = "0.14", features = ["client", "http1", "runtime", "tcp"] }