Annotation Interface SentryTransaction
Marker annotation for methods or classes that should be treated as Sentry transactions.
You must use self-injected bean for calling if you want to call method within the class itself in order for this annotation to take action.
This is due to the fact that the actual method calls are intercepted only by proxies, not the instance itself.
You must use self-injected bean for calling if you want to call method within the class itself in order for this annotation to take action.
This is due to the fact that the actual method calls are intercepted only by proxies, not the instance itself.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether to bind the transaction to the current scope.booleanWhether to capture exceptions in the transaction.Class<? extends TransactionConfigurator> Configurator class to customize the transaction.Name of the transaction.booleanWhether to create span only if there's an active transaction in current scope.Operation of the transaction. -
Field Summary
Fields
-
Field Details
-
DEFAULT_NAME
- See Also:
-
-
Element Details
-
name
String nameName of the transaction. If not specified, it will be set to class name and method name.- Returns:
- the name of the transaction
- Default:
"$default-name$"
-
operation
String operationOperation of the transaction.- Returns:
- the description of the transaction
- Default:
""
-
bindToScope
boolean bindToScopeWhether to bind the transaction to the current scope. If set to false, the transaction will not be bound to the current scope.- Returns:
- true if the transaction should be bound to the current scope, false otherwise
- Default:
true
-
onlySpan
boolean onlySpanWhether to create span only if there's an active transaction in current scope.- Returns:
- true if the transaction should only create a span if there's an active transaction, false otherwise
- Default:
false
-
captureExceptions
boolean captureExceptionsWhether to capture exceptions in the transaction. If set to false, exceptions will not be captured in the transaction.- Returns:
- true if exceptions should be captured, false otherwise
- Default:
true
-
configurator
Class<? extends TransactionConfigurator> configuratorConfigurator class to customize the transaction. This class must have no-arg constructor. Will be called before the transaction is started. Is cached for performance. If not specified, no customization will be applied.- Returns:
- the configurator class
- Default:
enterprises.iwakura.sigewine.aop.sentry.NoopTransactionConfigurator.class
-