opentelemetry-rust
opentelemetry-rust copied to clipboard
Possible to use async without with_context everywhere?
I'm wondering if it's possible to have a series of await
s in the function a span is created without every single async call requiring .with_context(ctx)
appended?
Example here https://github.com/open-telemetry/opentelemetry-rust/blob/482772f2317e242e6b98bfe04ed42e4dac8cf77b/examples/async/src/main.rs#L52
Could consider creating a crate with macros to help here, similar to how tracing-attributes allows you to have a more ergonomic async API.