public interface TracedMethod extends AttributeHolder
Trace annotation.Agent.getTracedMethod()| Modifier and Type | Method and Description |
|---|---|
void |
addOutboundRequestHeaders(OutboundHeaders outboundHeaders)
Deprecated.
Instead, use the Distributed Tracing API
Transaction.insertDistributedTraceHeaders(Headers) to create a
distributed tracing payload |
void |
addRollupMetricName(java.lang.String... metricNameParts)
Metric names added here will be reported as roll-up metrics.
|
java.lang.String |
getMetricName()
Returns the traced method metric name.
|
void |
reportAsExternal(ExternalParameters externalParameters)
Used to report this traced method as an HTTP external call, datastore external call, or general external call.
|
void |
setMetricName(java.lang.String... metricNameParts)
Sets the traced method metric name by concatenating all given metricNameParts with a '/' separating each part.
|
addCustomAttribute, addCustomAttribute, addCustomAttribute, addCustomAttributesjava.lang.String getMetricName()
void setMetricName(java.lang.String... metricNameParts)
metricNameParts - The segments of the metric name. These values will be concatenated together separated by a
`/` char.void addRollupMetricName(java.lang.String... metricNameParts)
metricNameParts - The segments of the rollup metric name. These values will be concatenated together
separated by a `/` char.void reportAsExternal(ExternalParameters externalParameters)
GenericParameters, HttpParameters, DatastoreParameters,
MessageProduceParameters, MessageConsumeParameters.
Note: If you are performing an external HTTP call, be sure to call
addOutboundRequestHeaders(OutboundHeaders) prior to the request being sent.externalParameters - The appropriate input parameters depending on the type of external call. Use one of
the respective builders for the following objects: GenericParameters, HttpParameters,
DatastoreParameters, MessageProduceParameters, MessageConsumeParameters.@Deprecated void addOutboundRequestHeaders(OutboundHeaders outboundHeaders)
Transaction.insertDistributedTraceHeaders(Headers) to create a
distributed tracing payloadoutboundHeaders - The headers that will be written to the output stream for the external request. This also
determines if the external call is HTTP or JMS.