Annotation Type CaptureTransaction


@Retention(RUNTIME) @Target(METHOD) public @interface CaptureTransaction
Annotating a method with @CaptureTransaction creates a Transaction for that method.

Note that this only works when there is no active transaction on the same thread.

Note: it is required to configure the application_packages, otherwise this annotation will be ignored.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The type of the transaction.
    The name of the Transaction.
  • Element Details

    • value

      String value
      The name of the Transaction. Defaults to the ClassName#methodName
      Default:
      ""
    • type

      String type
      The type of the transaction.
      Default:
      "request"