Class Tag
java.lang.Object
io.opencensus.tags.Tag
- Direct Known Subclasses:
AutoValue_Tag
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagDeprecated.static Tagcreate(TagKey key, TagValue value, TagMetadata tagMetadata) Creates aTagfrom the given key, value and metadata.abstract TagKeygetKey()Returns the tag's key.abstract TagMetadataReturns theTagMetadataassociated with thisTag.abstract TagValuegetValue()Returns the tag's value.
-
Field Details
-
METADATA_UNLIMITED_PROPAGATION
-
-
Constructor Details
-
Tag
Tag()
-
-
Method Details
-
create
Deprecated.in favor ofcreate(TagKey, TagValue, TagMetadata).Creates aTagfrom the given key and value.For backwards-compatibility this method still produces propagating
Tags.This is equivalent to calling
create(key, value, TagMetadata.create(TagTtl.UNLIMITED_PROPAGATION)).- Parameters:
key- the tag key.value- the tag value.- Returns:
- a
Tagwith the given key and value. - Since:
- 0.8
-
create
Creates aTagfrom the given key, value and metadata.- Parameters:
key- the tag key.value- the tag value.tagMetadata- the tag metadata.- Returns:
- a
Tag. - Since:
- 0.20
-
getKey
-
getValue
-
getTagMetadata
Returns theTagMetadataassociated with thisTag.- Returns:
- the
TagMetadata. - Since:
- 0.20
-
create(TagKey, TagValue, TagMetadata).