public interface Tracer extends TimedItem, com.newrelic.agent.bridge.ExitTracer, ErrorTracer
TracerFactory instances.| Modifier and Type | Method and Description |
|---|---|
void |
childTracerFinished(Tracer child)
Tells the tracer when a child tracer finished.
|
java.lang.Object |
getAgentAttribute(java.lang.String key)
Returns the specific object for the input key in the map of attributes used to store extra information about the
invocation (Like the sql statement for a sql tracer).
|
java.util.Map<java.lang.String,java.lang.Object> |
getAgentAttributes()
A map of attributes used to store extra information about the invocation (Like the sql statement for a sql
tracer).
|
int |
getChildCount() |
ClassMethodSignature |
getClassMethodSignature() |
java.util.Map<java.lang.String,java.lang.Object> |
getCustomAttributes()
A map of attributes the customer has added to the tracer
|
long |
getEndTime()
Get the end time of the method invocation in nanoseconds.
|
long |
getEndTimeInMilliseconds()
Get the end time of the method invocation in milliseconds.
|
long |
getExclusiveDuration()
Get the duration in nanoseconds of the tracer minus the duration of all child tracers.
|
com.newrelic.api.agent.ExternalParameters |
getExternalParameters() |
java.lang.String |
getGuid()
Gets the random identifier of this Tracer.
|
java.lang.String |
getMetricName()
The metric name of this tracer.
|
Tracer |
getParentTracer()
Returns the parent tracer or null if this is the root tracer.
|
long |
getRunningDurationInNanos()
Returns the elapsed time since the start time of the transaction up until now if the tracer is still running, or
the final duration if the tracer has finished.
|
long |
getStartTime()
Get the start time of the method invocation in nanoseconds.
|
long |
getStartTimeInMillis() |
long |
getStartTimeInMilliseconds()
Get the start time of the method invocation in milliseconds.
|
TransactionActivity |
getTransactionActivity() |
TransactionSegment |
getTransactionSegment(TransactionTracerConfig ttConfig,
SqlObfuscator sqlObfuscator,
long startTime,
TransactionSegment lastSibling) |
java.lang.String |
getTransactionSegmentName()
The name of this tracer in a transaction trace segment.
|
java.lang.String |
getTransactionSegmentUri()
The uri of this tracer in a tranaction trace segment.
|
boolean |
isAsync() |
boolean |
isChildHasStackTrace()
True means a child has taken a stack trace and therefore this tracer should not take one.
|
boolean |
isLeaf() |
boolean |
isParent()
Does the tracer have any children?
|
boolean |
isTransactionSegment()
Returns true if this tracer should participate in transaction trace.
|
void |
markFinishTime() |
void |
removeAgentAttribute(java.lang.String key)
Remove attribute.
|
void |
removeTransactionSegment() |
void |
setAgentAttribute(java.lang.String key,
java.lang.Object value)
Add some extra information to the invocation (Like the sql statement for a sql tracer).
|
void |
setParentTracer(Tracer tracer) |
getDuration, getDurationInMillisecondsaddExclusiveRollupMetricName, addOutboundRequestHeaders, getParentTracedMethod, isMetricProducer, isTrackCallbackRunnable, nameTransaction, readInboundResponseHeaders, reportAsExternal, setCustomMetricPrefix, setMetricNameFormatInfo, setRollupMetricNames, setTrackCallbackRunnable, setTrackChildThreads, trackChildThreadsaddRollupMetricName, reportAsExternal, setMetricNameaddCustomAttribute, addCustomAttribute, addCustomAttribute, addCustomAttributesgetException, setNoticedError, setThrownException, wasExceptionSetByAPITransactionActivity getTransactionActivity()
long getStartTime()
long getStartTimeInMilliseconds()
long getEndTime()
long getEndTimeInMilliseconds()
long getExclusiveDuration()
getExclusiveDuration in interface TimedItemlong getRunningDurationInNanos()
java.lang.String getMetricName()
getMetricName in interface com.newrelic.api.agent.TracedMethodjava.lang.String getTransactionSegmentName()
java.lang.String getTransactionSegmentUri()
java.util.Map<java.lang.String,java.lang.Object> getCustomAttributes()
java.util.Map<java.lang.String,java.lang.Object> getAgentAttributes()
void setAgentAttribute(java.lang.String key,
java.lang.Object value)
void removeAgentAttribute(java.lang.String key)
key - attribute to removejava.lang.Object getAgentAttribute(java.lang.String key)
void childTracerFinished(Tracer child)
int getChildCount()
Tracer getParentTracer()
void setParentTracer(Tracer tracer)
boolean isParent()
ClassMethodSignature getClassMethodSignature()
boolean isTransactionSegment()
boolean isChildHasStackTrace()
TransactionSegment getTransactionSegment(TransactionTracerConfig ttConfig, SqlObfuscator sqlObfuscator, long startTime, TransactionSegment lastSibling)
boolean isLeaf()
boolean isAsync()
void removeTransactionSegment()
void markFinishTime()
java.lang.String getGuid()
ErrorTracergetGuid in interface ErrorTracerlong getStartTimeInMillis()
com.newrelic.api.agent.ExternalParameters getExternalParameters()