Open
Description
Accessing span attributes is most likely accessed behind a lock. To avoid locking and unlocking continuously it is preferable span attributes are built up separate from the span and then set once on the span.
Eg replace
span.attributes["attr1"] = value1
span.attributes["attr2"] = value2
...
with
var attributes = span.attributes
attributes["attr1"] = value1
attributes["attr2"] = value2
...
span.attributes = attributes
Metadata
Metadata
Assignees
Labels
No labels