You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Primarily, the codegen right now does not correctly support hybrid-async functions (fn() -> impl Future that has both sync code, and returns an async block) #1863
The codegen also generates weird code in certain situations and can trigger some lints, for example #1831
It also does not support more than one return position for fn() -> Box<dyn Future>, as in #1840
We have a couple of patterns the codegen should cover, and apart from that there is optional support to log the return value which we have to cater for.
Feature Request
Crates
tracing-attributes
Motivation
Primarily, the codegen right now does not correctly support hybrid-async functions (
fn() -> impl Future
that has both sync code, and returns an async block) #1863The codegen also generates weird code in certain situations and can trigger some lints, for example #1831
It also does not support more than one return position for
fn() -> Box<dyn Future>
, as in #1840We have a couple of patterns the codegen should cover, and apart from that there is optional support to log the return value which we have to cater for.
As for the input code patterns:
And then there is also the case that returns a named future, but I don’t think we can do anything in those, because its
Instrumented
impl Future
.Nice to haves
async block
wrapping when possibleProposal
No concrete fleshed out proposal yet, just some brainstorming ;-)
Especially the
unbalanced_boxed_fn
case, and the cases involving return-value inspection are causing me headaches right now.The text was updated successfully, but these errors were encountered: