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 exception. For custom or non-HTTP work such as background jobs, queue consumers, database, or RPC calls, set the outcome explicitly. An explicitly set outcome takes precedence over the automatic inference; if set more than once, the last value wins. setOutcome returns the same object, so calls can be chained.

Compatibility

Requires Java agent version 2.1.1 or higher.

Set transaction outcome

Set span outcome

Accepted values

See also