public interface Transaction
Trace
annotation and
set Trace.dispatcher()
to true.Agent.getTransaction()
,
Trace.dispatcher()
Modifier and Type | Method and Description |
---|---|
TracedMethod |
getLastTracer()
Deprecated.
use
getTracedMethod . |
TracedMethod |
getTracedMethod()
Returns the
TracedMethod enclosing the caller. |
void |
ignore()
Ignore this transaction so that none of its data is reported to the New Relic service.
|
void |
ignoreApdex()
Ignore the current transaction for calculating Apdex score.
|
boolean |
isTransactionNameSet()
Returns true if the transaction name has been set.
|
boolean |
setTransactionName(TransactionNamePriority namePriority,
boolean override,
java.lang.String category,
java.lang.String... parts)
Sets the current transaction's name using the given priority.
|
boolean setTransactionName(TransactionNamePriority namePriority, boolean override, java.lang.String category, java.lang.String... parts)
namePriority
- The priority of the new transaction name.override
- Overrides the current transaction name if it has the same priority level (or lower).category
- The type of transaction. This is the second segment of the full transaction metric name.parts
- The category and all of the parts are concatenated together with / characters to create the full
name.boolean isTransactionNameSet()
@Deprecated TracedMethod getLastTracer()
getTracedMethod
.TracedMethod getTracedMethod()
TracedMethod
enclosing the caller.TracedMethod
enclosing the caller. The return value is null
if the caller is not
within a transaction.void ignore()
void ignoreApdex()