Records an error in the current span.
The error to record
Optionalattributes: Record<string, string | number | boolean>Optional attributes to associate with the span
Ends the current trace or span. If the trace was created, then it will end both. However if it references an existing trace, then it will only end the span.
Optionalattributes: Record<string, string | number | boolean>Optional attributes to associate with the trace
This trace ID.