Set a single attribute on the span.
Set it to undefined to remove the attribute.
setAttributes(attributes: SpanAttributes): void
Set multiple attributes on the span.
Any attribute set to undefined will be removed.
setStatus(status: SpanStatus): this
Sets the status attribute on the current span.
updateName(name: string): this
Update the name of the span.
isRecording(): boolean
If this is span is actually recording data.
This will return false if tracing is disabled, this span was not sampled or if the span is already finished.