-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impl<T: Stream> Stream for Instrumented<T> #2540
Comments
isn't it different from tracing::instrument::Instrumented? |
They are a different type and trait, but are drop-in replacement for analogs from AFAIK |
ok so are you proposing to use tracing_futures::Instrument trait instead of tracing::Ibstrument if I want to have Instrumented implemented for Stream? I am not sure this suggestion is good in long-term perspective why have two Instrument trait implementations anyways? shouldn't tge one from tracing-futures be deprecated? |
The The When the |
@hawkw thanks for the explanation! it now makes much more sense. I am closing the issue. |
Glad that was helpful! I think the |
it would be nice to have
impl<T: Stream> Stream for Instrumented<T>
just as we haveimpl<T: Stream> Stream for Instruemnted<T>
otherwise it is really unergonomic to propagate tracing spans into streamsI have this use case: actix-web streaming response
what I would like to have is
however this doesn't compile
The text was updated successfully, but these errors were encountered: