Package io.sentry.protocol
Enum Class TransactionNameSource
- All Implemented Interfaces:
Serializable
,Comparable<TransactionNameSource>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiName()
static TransactionNameSource
Returns the enum constant of this class with the specified name.static TransactionNameSource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CUSTOM
User-defined nameExamples:
- my_transaction
-
URL
Raw URL, potentially containing identifiers.Examples:
- /auth/login/john123/
- GET /auth/login/john123/
-
ROUTE
Parametrized URL / routeExamples:
- /auth/login/:userId/
- GET /auth/login/{user}/
-
VIEW
Name of the view handling the request.Examples:
- UserListView
-
COMPONENT
Named after a software component, such as a function or class name.Examples:
- AuthLogin.login
- LoginActivity.login_button
-
TASK
Name of a background taskExamples:
- sentry.tasks.do_something
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
apiName
-