diff options
author | Alex Auvolat <alex@adnab.me> | 2022-04-07 10:31:37 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-04-07 10:31:37 +0200 |
commit | faecefc7a8ce91582b33f3da45a3ba4669afeffe (patch) | |
tree | c8626d678563a2826b6636b44bccc92299ca342d | |
parent | b1425230cc59f6172f48f65b1608967cfbb03080 (diff) | |
download | netapp-faecefc7a8ce91582b33f3da45a3ba4669afeffe.tar.gz netapp-faecefc7a8ce91582b33f3da45a3ba4669afeffe.zip |
Fix span kind for RPC client sidev0.4.2
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/client.rs | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -433,7 +433,7 @@ dependencies = [ [[package]] name = "netapp" -version = "0.4.0" +version = "0.4.1" dependencies = [ "arc-swap", "async-trait", @@ -1,6 +1,6 @@ [package] name = "netapp" -version = "0.4.1" +version = "0.4.2" authors = ["Alex Auvolat <alex@adnab.me>"] edition = "2018" license-file = "LICENSE" diff --git a/src/client.rs b/src/client.rs index c9dbd02..8227e8f 100644 --- a/src/client.rs +++ b/src/client.rs @@ -156,7 +156,7 @@ impl ClientConn { if #[cfg(feature = "telemetry")] { let tracer = opentelemetry::global::tracer("netapp"); let mut span = tracer.span_builder(format!("RPC >> {}", path)) - .with_kind(SpanKind::Server) + .with_kind(SpanKind::Client) .start(&tracer); let propagator = BinaryPropagator::new(); let telemetry_id = Some(propagator.to_bytes(span.span_context()).to_vec()); |