start_transaction function is used to start a new transaction. For supported frameworks, Atatus Ruby agent will automatically capture the transactions. This function can be used to instrument unsupported frameworks or background operations.

Compatibility

  • Rails 4.2 and above.
  • Sinatra 1.0 and above.

Syntax

Example

Example for sample custom transaction

See also