|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.tag.ThreadLocalTaggingContext
public final class ThreadLocalTaggingContext
Keeps track of tags that should be applied to counters incremented in the current thread. Can be used to customize the context for code executed in a particular thread. For example, on a server with a thread per request the context can be set so metrics will be tagged accordingly.
| Method Summary | |
|---|---|
static ThreadLocalTaggingContext |
getInstance()
Get the instance. |
TagList |
getTags()
Get the tags associated with the current thread. |
void |
reset()
Remove the tags associated with the current thread. |
void |
setTags(TagList tags)
Set the tags to be associated with the current thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ThreadLocalTaggingContext getInstance()
public void setTags(TagList tags)
public TagList getTags()
getTags in interface TaggingContextpublic void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||