Package co.elastic.apm.api
Annotation Type CaptureTransaction
-
@Retention(RUNTIME) @Target(METHOD) public @interface CaptureTransactionAnnotating a method with@CaptureTransactioncreates aTransactionfor 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 java.lang.StringtypeThe type of the transaction.java.lang.StringvalueThe name of theTransaction.
-
-
-
Element Detail
-
value
java.lang.String value
The name of theTransaction. Defaults to theClassName#methodName- Default:
- ""
-
-