addEvent adds an event to the span.
event name
Optional
attributes: Attributesevent attributes
end ends the span.
Note: spans must be ended so that they can be exported.
setAttribute sets an attribute on the span.
attribute key
attribute value
setAttributes sets multiple attributes on the span.
attributes to set
Span interface