Sets the Datadog error attributes (error.type, error.message, error.stack) for error on span (default: the active span). No-op without a span.
error.type
error.message
error.stack
error
span
Optional
Sets the Datadog error attributes (
error.type,error.message,error.stack) forerroronspan(default: the active span). No-op without a span.