diff options
author | Jonathan Davies <jpds@protonmail.com> | 2023-01-31 13:45:43 +0000 |
---|---|---|
committer | Jonathan Davies <jpds@protonmail.com> | 2023-02-01 08:59:28 +0000 |
commit | c034bdedfe0d69198e56c78c10eb227222f9ac4e (patch) | |
tree | fca3665be348d67d59ea06db2ab7134a92d8ee64 /src/server.rs | |
parent | 14ba9a811f9576dbbbb6368357a0a356aeb25cde (diff) | |
download | netapp-c034bdedfe0d69198e56c78c10eb227222f9ac4e.tar.gz netapp-c034bdedfe0d69198e56c78c10eb227222f9ac4e.zip |
src: Use new BinaryPropagator methods in opentelemetry_contrib/0.10.
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |