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 takes priority over the automatic inference.
In the Ruby agent, outcome is a writable property on the transaction and span.