Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tracing: remove `Into<Option<Id>>` impl for `Span` This doesn't work correctly, since the span is dropped when the function returns, calling `try_close` on that span. We could remove the inner value in this case, but then `try_close` will _never_ be called on that ID, leaking the parent. If the span is dropped *after* the new span is created, instead, everything will work correctly, because the subscriber will have already increased its reference count (as it now has a child). Thus, only `&Span` is valid here. Signed-off-by: Eliza Weisman <[email protected]>
- Loading branch information