The outcome marks whether a transaction or span succeeded or failed. Atatus records one of three values (success, failure, or unknown) and infers it automatically from the HTTP status code or a captured error. For custom or non-HTTP work such as background jobs, queue consumers, database, or RPC calls, set the outcome explicitly. An explicitly assigned outcome always wins over the automatic inference. In the Go agent, outcome is a public field on the transaction and span, so set it directly.

Compatibility

Compatible with all Go agent versions.

Set transaction outcome

Set span outcome

Accepted values

See also