public class DistributedTraceServiceImpl extends AbstractService implements DistributedTraceService, ConnectionListener, ExtendedTransactionListener, HarvestListener, AgentConfigListener
logger| Constructor and Description |
|---|
DistributedTraceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterHarvest(java.lang.String appName)
Called after the harvest.
|
void |
beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
Called before the harvest.
|
float |
calculatePriorityRemoteParent(Transaction tx,
boolean remoteParentSampled,
java.lang.Float inboundPriority) |
float |
calculatePriorityRoot(Transaction tx) |
void |
configChanged(java.lang.String appName,
AgentConfig agentConfig) |
void |
connected(IRPMService rpmService,
AgentConfig agentConfig) |
com.newrelic.api.agent.DistributedTracePayload |
createDistributedTracePayload(Tracer tracer) |
void |
disconnected(IRPMService rpmService) |
void |
dispatcherTransactionCancelled(Transaction transaction)
The transaction on the current thread is being cancelled, either because of a serious internal error or because
the activity on the current thread is now linked to another transaction and this transaction should not report.
|
void |
dispatcherTransactionFinished(TransactionData transactionData,
TransactionStats transactionStats)
Called after a dispatcher transaction finishes on the request thread.
|
void |
dispatcherTransactionStarted(Transaction transaction)
Called after a dispatcher transaction is started on the request thread.
|
protected void |
doStart() |
protected void |
doStop() |
java.lang.String |
getAccountId() |
java.lang.String |
getApplicationId() |
java.util.Map<java.lang.String,java.lang.Object> |
getIntrinsics(DistributedTracePayloadImpl inboundPayload,
java.lang.String guid,
java.lang.String traceId,
com.newrelic.api.agent.TransportType transportType,
long parentTransportDurationInMillis,
long largestTransportDuration,
java.lang.String parentId,
java.lang.String parentSpanId,
float priority) |
int |
getMajorSupportedCatVersion() |
int |
getMinorSupportedCatVersion() |
java.lang.String |
getTrustKey() |
boolean |
isEnabled()
Is the service enabled.
|
static float |
nextTruncatedFloat() |
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stoppublic boolean isEnabled()
ServiceisEnabled in interface ServiceisEnabled in interface DistributedTraceServicetrue if the service is enabledprotected void doStart()
throws java.lang.Exception
doStart in class AbstractServicejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class AbstractServicejava.lang.Exceptionpublic void connected(IRPMService rpmService, AgentConfig agentConfig)
connected in interface ConnectionListenerpublic void disconnected(IRPMService rpmService)
disconnected in interface ConnectionListenerpublic void beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
HarvestListenerbeforeHarvest in interface HarvestListenerpublic void afterHarvest(java.lang.String appName)
HarvestListenerafterHarvest in interface HarvestListenerpublic int getMajorSupportedCatVersion()
getMajorSupportedCatVersion in interface DistributedTraceServicepublic int getMinorSupportedCatVersion()
getMinorSupportedCatVersion in interface DistributedTraceServicepublic java.lang.String getAccountId()
getAccountId in interface DistributedTraceServicepublic java.lang.String getTrustKey()
getTrustKey in interface DistributedTraceServicepublic java.lang.String getApplicationId()
getApplicationId in interface DistributedTraceServicepublic float calculatePriorityRemoteParent(Transaction tx, boolean remoteParentSampled, java.lang.Float inboundPriority)
calculatePriorityRemoteParent in interface DistributedTraceServicepublic float calculatePriorityRoot(Transaction tx)
calculatePriorityRoot in interface DistributedTraceServicepublic java.util.Map<java.lang.String,java.lang.Object> getIntrinsics(DistributedTracePayloadImpl inboundPayload, java.lang.String guid, java.lang.String traceId, com.newrelic.api.agent.TransportType transportType, long parentTransportDurationInMillis, long largestTransportDuration, java.lang.String parentId, java.lang.String parentSpanId, float priority)
getIntrinsics in interface DistributedTraceServicepublic void dispatcherTransactionStarted(Transaction transaction)
ExtendedTransactionListenerdispatcherTransactionStarted in interface ExtendedTransactionListenertransaction - The transaction that was just startedpublic void dispatcherTransactionCancelled(Transaction transaction)
ExtendedTransactionListenerdispatcherTransactionCancelled in interface ExtendedTransactionListenertransaction - the transaction that is completing abruptly.public void dispatcherTransactionFinished(TransactionData transactionData, TransactionStats transactionStats)
TransactionListenerdispatcherTransactionFinished in interface TransactionListenertransactionData - the final data from the transactiontransactionStats - the final metric information from the transactionpublic static float nextTruncatedFloat()
public com.newrelic.api.agent.DistributedTracePayload createDistributedTracePayload(Tracer tracer)
createDistributedTracePayload in interface DistributedTraceServicepublic void configChanged(java.lang.String appName,
AgentConfig agentConfig)
configChanged in interface AgentConfigListener