Package io.opencensus.tags
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.
-
ClassDescriptionInternal tagging utilities.No-op implementations of tagging classes.Builder for the
TagContext
class.Object for creating newTagContext
s andTagContext
s based on the current context.State of theTagsComponent
.A key to a value stored in aTagContext
.TagMetadata
contains properties associated with aTag
.TagMetadata.TagTtl
is an integer that represents number of hops a tag can propagate.Class for accessing the defaultTagsComponent
.Class that holds the implementation forTagger
andTagPropagationComponent
.A validated tag value.