Conversation
… up the scopes at time of creation instead of termination
size-limit report 📦
|
mydea
left a comment
There was a problem hiding this comment.
looks good to me! When we actually do v8 we should align using either weak maps or non-enumerable properties for all the stuff we have to relate to spans, but this is purely internal and I have no strong feelings on this either way. We can think about this some more..!
Agreed. I think I like non-enumerables a bit more because you can rely on them working across package boundaries without having to rely on getters-setters, meaning they won't widen the API surface in any way. |
Makes spans/transactions created with
startSpan,startSpanManualandstartInactiveSpanuse data from the scopes that were active at the time these functions were called instead of using the scopes that are active when the span was.end()ed.We already do this in the otel compatible SDK and we deem this behaviour more intuitive than using the scopes on span finish.