Package io.opencensus.tags
Class TagMetadata
java.lang.Object
io.opencensus.tags.TagMetadata
- Direct Known Subclasses:
AutoValue_TagMetadata
TagMetadata
contains properties associated with a Tag
.
For now only the property TagMetadata.TagTtl
is defined. In future, additional properties may be
added to address specific situations.
- Since:
- 0.20
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
TagMetadata.TagTtl
is an integer that represents number of hops a tag can propagate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagMetadata
create
(TagMetadata.TagTtl tagTtl) Creates aTagMetadata
with the givenTagMetadata.TagTtl
.abstract TagMetadata.TagTtl
Returns theTagMetadata.TagTtl
of thisTagMetadata
.
-
Constructor Details
-
TagMetadata
TagMetadata()
-
-
Method Details
-
create
Creates aTagMetadata
with the givenTagMetadata.TagTtl
.- Parameters:
tagTtl
- TTL of aTag
.- Returns:
- a
TagMetadata
. - Since:
- 0.20
-
getTagTtl
Returns theTagMetadata.TagTtl
of thisTagMetadata
.- Returns:
- the
TagTtl
. - Since:
- 0.20
-