From faecefc7a8ce91582b33f3da45a3ba4669afeffe Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 7 Apr 2022 10:31:37 +0200 Subject: [PATCH] Fix span kind for RPC client side --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/client.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3b7f2d0..20c3393 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -433,7 +433,7 @@ dependencies = [ [[package]] name = "netapp" -version = "0.4.0" +version = "0.4.1" dependencies = [ "arc-swap", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index f724164..5705342 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "netapp" -version = "0.4.1" +version = "0.4.2" authors = ["Alex Auvolat "] 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());