aboutsummaryrefslogtreecommitdiff
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
parentb1425230cc59f6172f48f65b1608967cfbb03080 (diff)
downloadnetapp-0.4.2.tar.gz
netapp-0.4.2.zip
Fix span kind for RPC client sidev0.4.2
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/client.rs2
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 <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());