Ends the current span.
Optionalattributes: Record<string, string | number | boolean>Optional attributes to associate with the span
Records an error in the current span.
The error to record
Optionalattributes: Record<string, string | number | boolean>Optional labels to associate with the span
This span ID.