Interface ThreadReporter
-
public interface ThreadReporterWhen a collectors interface extends ThreadReporter it adds the ability for metrics reported to that collectors interface to be associated with each other if reported from the same thread. Imagine a rest call where you want to report various metrics and different points along the call path that you want to tag with the url path the request came in on. You would create a collectors interface that extends ThreadReporter and then call addTag to set the resource url as a tag. Then each call on the collectors will put that tag. Items set on the ThreadReporter will only effect calls to the collectors on the same thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddTag(String name, String value)This lets you put a tag to all data points submitted to sub interfaces of ThreadReportervoidclearAll()voidclearTags()voidremoveTag(String name)voidsetReportTime(long time)Set the time for data points to be reported
-
-
-
Method Detail
-
setReportTime
void setReportTime(long time)
Set the time for data points to be reported- Parameters:
time- Timestamp to use when reporting metrics
-
addTag
void addTag(String name, String value)
This lets you put a tag to all data points submitted to sub interfaces of ThreadReporter- Parameters:
name- Name of tag to add to threadvalue- Value of tag to add to thread
-
removeTag
void removeTag(String name)
-
clearTags
void clearTags()
-
clearAll
void clearAll()
-
-