public @interface CaptureTransaction
@
CaptureTransaction
creates a Transaction
for 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.
Modifier and Type | Optional Element | Description |
---|---|---|
java.lang.String |
type |
The type of the transaction.
|
java.lang.String |
value |
The name of the
Transaction . |
java.lang.String value
Transaction
.
Defaults to the ClassName#methodName
Copyright © 2018–2019 Elastic Inc.. All rights reserved.