SpanStatusError type

Status representing an error that can be sent to setStatus

type SpanStatusError = { error?: Error | string; status: "error" }