Logs a message to a span with additional parameters.
The parameters for the log message.
The span to log the message to. If not provided, the active span is used. If no active span is available, the message is logged to the console.
Logs a message to a span with additional parameters.