Would a new_root_span!
macro be useful?
#2469
Nicolas-GUILLAUME
started this conversation in
Ideas
Replies: 1 comment
-
So dinging into this more, there is a way to do this easily with: span!(parent: None, ...) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Today I ran into a situation where I want to create a "detached" child span. Unless I'm missing something, this is unfortunately rather verbose to implement via the
Span::new_root
method.The
span!
macro unfortunately only supports creating spans withSpan::new
andSpan::child_of
. Looking at the macro I feel like adding a newnew_root_span!
macro would address this gap and wouldn't be a very intrusive change. What are your thoughts on this?Beta Was this translation helpful? Give feedback.
All reactions