withSpan() doesn’t work as documented
JensAyton opened this issue · 2 comments
JensAyton commented
The documentation comments clearly state:
DO NOT
end()
the passed in span manually. It will be ended automatically when thefunction
returns.
However, there is no end()
on the happy path, only if an error occurs.
Of course I could make a PR, but when I encountered this I convinced myself that such an obvious omission might be intentional. :-)
ktoso commented
Thanks for spotting this! Bug indeed 🐞
slashmo commented
Of course I could make a PR
@JensAyton
Thanks for the bug report! Would you like to take this on yourself?