Closed dankhan-helmet closed 2 months ago
Note also this is the recommend way of calling it in the latest readme.md file, but that way is now deprecated.
"To avoid needing to pass spans around as arguments to other functions, you can get the current span with Context.current.span."
Prior to 0.18.1 I had used
Context.current.span
to access the current span and add attributes to it in my code.This approach has been deprecated in recent versions, but the deprecation notes don't suggest or point to what to use instead.
I'm struggling to find documentation to tell me what the recommended way to do this is now. Any pointers? 🙏🏼