Package io.opencensus.tags
API for associating tags with scoped operations.
This package manages a set of tags in the io.grpc.Context
. The tags can be used to
label anything that is associated with a specific operation. For example, the
io.opencensus.stats
package labels all stats with the current tags.
Tags
are key-value pairs. The keys
and values
are wrapped String
s. They are stored
as a map in a TagContext
.
Note that tags are independent of the tracing data that is propagated in the
io.grpc.Context
, such as trace ID.
-
Class Summary Class Description AutoValue_Tag AutoValue_TagKey AutoValue_TagMetadata AutoValue_TagValue InternalUtils Internal tagging utilities.NoopTags No-op implementations of tagging classes.NoopTags.NoopTagContext NoopTags.NoopTagContextBinarySerializer NoopTags.NoopTagContextBuilder NoopTags.NoopTagContextTextFormat NoopTags.NoopTagger NoopTags.NoopTagPropagationComponent NoopTags.NoopTagsComponent Tag TagContext TagContextBuilder Builder for theTagContext
class.Tagger Object for creating newTagContext
s andTagContext
s based on the current context.TagKey A key to a value stored in aTagContext
.TagMetadata TagMetadata
contains properties associated with aTag
.Tags Class for accessing the defaultTagsComponent
.TagsComponent Class that holds the implementation forTagger
andTagPropagationComponent
.TagValue A validated tag value. -
Enum Summary Enum Description TaggingState State of theTagsComponent
.TagMetadata.TagTtl TagMetadata.TagTtl
is an integer that represents number of hops a tag can propagate.