You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have an ability to setTags() on a Span but no way to add an additional tag using the interface. So in order to add aditional tag you would have to keep the state of tags yourself as such:
Problem
Currently we have an ability to
setTags()
on a Span but no way to add an additional tag using the interface. So in order to add aditional tag you would have to keep the state of tags yourself as such:This would look worse if you'd like to pass it between functions.
Proposal
Get rid of
setTags()
and introducesetTag()
. All other OpenTracing libraries do so.Usage would look as such:
This will also help having more consistent interface between libraries.
The text was updated successfully, but these errors were encountered: