Annotation Interface SentryTransaction


@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface SentryTransaction
Makes annotated method execution or a method execution within an annotated class to get wrapped into SentryTransaction.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A transaction operation, for example "http".
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Transaction name.
    Transaction name.
  • Element Details

    • operation

      String operation
      A transaction operation, for example "http".
      Returns:
      transaction operation
    • name

      @AliasFor("value") String name
      Transaction name. If not set, transaction name is resolved as a class name and a method name.
      Returns:
      transaction name
      Default:
      ""
    • value

      @AliasFor("name") String value
      Transaction name. If not set, transaction name is resolved as a class name and a method name.
      Returns:
      transaction name
      Default:
      ""