From 7be02d77545cb918ad2f6b9b62c81fe769afaab6 Mon Sep 17 00:00:00 2001 From: Dihan Nahdi <90670352+dihannahdi@users.noreply.github.com> Date: Wed, 15 Apr 2026 16:34:16 +0700 Subject: [PATCH] fix: add tracing calls to tracing-aka-logging example closures (#3722) --- examples/tracing-aka-logging/src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/tracing-aka-logging/src/main.rs b/examples/tracing-aka-logging/src/main.rs index 06a8c08d..299cdeba 100644 --- a/examples/tracing-aka-logging/src/main.rs +++ b/examples/tracing-aka-logging/src/main.rs @@ -65,21 +65,22 @@ async fn main() { // You can use `_span.record("some_other_field", value)` in one of these // closures to attach a value to the initially empty field in the info_span // created above. + tracing::debug!("started processing request") }) .on_response(|_response: &Response, _latency: Duration, _span: &Span| { - // ... + tracing::debug!("finished processing request") }) .on_body_chunk(|_chunk: &Bytes, _latency: Duration, _span: &Span| { - // ... + tracing::debug!("sending body chunk") }) .on_eos( |_trailers: Option<&HeaderMap>, _stream_duration: Duration, _span: &Span| { - // ... + tracing::debug!("stream closed") }, ) .on_failure( |_error: ServerErrorsFailureClass, _latency: Duration, _span: &Span| { - // ... + tracing::error!("something went wrong") }, ), );