public interface TracedMethod
Trace
annotation.Agent.getTracedMethod()
Modifier and Type | Method and Description |
---|---|
void |
addOutboundRequestHeaders(OutboundHeaders outboundHeaders)
To be called when performing an outbound external request using HTTP or JMS.
|
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.
|
java.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
.void addOutboundRequestHeaders(OutboundHeaders outboundHeaders)
outboundHeaders
- 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.