Package io.opencensus.tags
Class TagContext
java.lang.Object
io.opencensus.tags.TagContext
- Direct Known Subclasses:
ContextUtils.EmptyTagContext
,NoopTags.NoopTagContext
,TagMapImpl
A map from
TagKey
to TagValue
that can be used to label anything that is
associated with a specific operation.
For example, TagContext
s can be used to label stats, log messages, or debugging
information.
- Since:
- 0.8
-
Constructor Details
-
TagContext
public TagContext()
-
-
Method Details
-
getIterator
Returns an iterator over the tags in thisTagContext
.- Returns:
- an iterator over the tags in this
TagContext
. - Since:
- 0.8
-
toString
-
equals
Returns true iff the other object is an instance ofTagContext
and contains the same key-value pairs. Implementations are free to override this method to provide better performance. -
hashCode
public final int hashCode()
-