aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.rs2
-rw-r--r--src/server.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client.rs b/src/client.rs
index 607dd17..d2a8d07 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -162,7 +162,7 @@ impl ClientConn {
.with_kind(SpanKind::Client)
.start(&tracer);
let propagator = BinaryPropagator::new();
- let telemetry_id: Bytes = propagator.to_bytes(span.span_context()).to_vec().into();
+ let telemetry_id: Bytes = propagator.serialize_into_bytes(span.span_context()).to_vec().into();
} else {
let telemetry_id: Bytes = Bytes::new();
}
diff --git a/src/server.rs b/src/server.rs
index 55b9e67..5825e6f 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -142,7 +142,7 @@ impl ServerConn {
let mut span = if !req_enc.telemetry_id.is_empty() {
let propagator = BinaryPropagator::new();
- let context = propagator.from_bytes(req_enc.telemetry_id.to_vec());
+ let context = propagator.deserialize_from_bytes(req_enc.telemetry_id.to_vec());
let context = Context::new().with_remote_span_context(context);
tracer.span_builder(format!(">> RPC {}", path))
.with_kind(SpanKind::Server)