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)
ExternalParametersFactory
to create the input externalParameters. 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 external. Use the
ExternalParametersFactory
to create input parameters. For example,
ExternalParametersFactory
's createForDatastore to report this TracedMethod as a datastore.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.