Enum Class TransactionNameSource

java.lang.Object
java.lang.Enum<TransactionNameSource>
io.sentry.protocol.TransactionNameSource
All Implemented Interfaces:
Serializable, Comparable<TransactionNameSource>, Constable

@Internal public enum TransactionNameSource extends Enum<TransactionNameSource>
  • Enum Constant Details

    • CUSTOM

      public static final TransactionNameSource CUSTOM
      User-defined name

      Examples:

      • my_transaction
    • URL

      public static final TransactionNameSource URL
      Raw URL, potentially containing identifiers.

      Examples:

      • /auth/login/john123/
      • GET /auth/login/john123/
    • ROUTE

      public static final TransactionNameSource ROUTE
      Parametrized URL / route

      Examples:

      • /auth/login/:userId/
      • GET /auth/login/{user}/
    • VIEW

      public static final TransactionNameSource VIEW
      Name of the view handling the request.

      Examples:

      • UserListView
    • COMPONENT

      public static final TransactionNameSource COMPONENT
      Named after a software component, such as a function or class name.

      Examples:

      • AuthLogin.login
      • LoginActivity.login_button
    • TASK

      public static final TransactionNameSource TASK
      Name of a background task

      Examples:

      • sentry.tasks.do_something
  • Method Details

    • values

      public static TransactionNameSource[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TransactionNameSource valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • apiName

      public String apiName()