Adds a timestamped event to the span.
The event name.
OptionalstartTime: TimeInputThe start time of the event.
Marks the span as complete and records the end time.
OptionalendTime: TimeInputOptional end time; defaults to current time if not provided.
Sets a single attribute (key-value pair) on the span.
The attribute key.
The attribute value.
Sets the final status of the span.
The span status containing code and optional message.
Represents a single traced operation (span) in distributed tracing.
A RequestSpan provides methods to add metadata (attributes), record events, set the final status, and mark the completion of an operation.