Adds the specified attributes to the current object.
A record containing key-value pairs of attributes to add.
Adds an event with the specified name and optional attributes.
The name of the event to add.
Optionalattributes: AttrMapOptional key-value pairs providing additional information about the event.
Adds an exception to the current context.
The error object to be added as an exception.
Sets the error status for the current signal.
Optionalmsg: stringOptional error message describing the reason for the error status.
Represents a span in a tracing system, providing methods to record events, exceptions, errors, and attributes.
Remarks
This interface is typically used to instrument code for distributed tracing, allowing you to annotate spans with additional information.