Package io.opencensus.tags
Class TagMetadata
- java.lang.Object
-
- io.opencensus.tags.TagMetadata
-
- Direct Known Subclasses:
AutoValue_TagMetadata
@Immutable public abstract class TagMetadata extends java.lang.Object
TagMetadata
contains properties associated with aTag
.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 Classes Modifier and Type Class Description static class
TagMetadata.TagTtl
TagMetadata.TagTtl
is an integer that represents number of hops a tag can propagate.
-
Constructor Summary
Constructors Constructor Description TagMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static TagMetadata
create(TagMetadata.TagTtl tagTtl)
Creates aTagMetadata
with the givenTagMetadata.TagTtl
.abstract TagMetadata.TagTtl
getTagTtl()
Returns theTagMetadata.TagTtl
of thisTagMetadata
.
-
-
-
Method Detail
-
create
public static TagMetadata create(TagMetadata.TagTtl tagTtl)
Creates aTagMetadata
with the givenTagMetadata.TagTtl
.- Parameters:
tagTtl
- TTL of aTag
.- Returns:
- a
TagMetadata
. - Since:
- 0.20
-
getTagTtl
public abstract TagMetadata.TagTtl getTagTtl()
Returns theTagMetadata.TagTtl
of thisTagMetadata
.- Returns:
- the
TagTtl
. - Since:
- 0.20
-
-