aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-04-07 10:31:37 +0200
committerAlex Auvolat <alex@adnab.me>2022-04-07 10:31:37 +0200
commitfaecefc7a8ce91582b33f3da45a3ba4669afeffe (patch)
treec8626d678563a2826b6636b44bccc92299ca342d /src
parentb1425230cc59f6172f48f65b1608967cfbb03080 (diff)
downloadnetapp-faecefc7a8ce91582b33f3da45a3ba4669afeffe.tar.gz
netapp-faecefc7a8ce91582b33f3da45a3ba4669afeffe.zip
Fix span kind for RPC client sidev0.4.2
Diffstat (limited to 'src')
-rw-r--r--src/client.rs2
1 files changed, 1 insertions, 1 deletions
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());