Sets an attribute on the span.
Attribute key
Attribute value
Sets multiple attributes.
Attributes to set
Records an event.
Event name
Optional attributes: SpanAttributesEvent attributes
Sets the span status.
Status code
Optional message: stringOptional message
Span name
Trace context
Span kind
Start timestamp in milliseconds
Optional endEnd timestamp in milliseconds
Span status
Optional statusStatus message
Span attributes
Span events
Links to other spans
Represents a single trace span.