Package io.opencensus.tags
Class NoopTags
java.lang.Object
io.opencensus.tags.NoopTags
No-op implementations of tagging classes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static TagContext
Returns aTagContext
that does not contain any tags.(package private) static TagContextBinarySerializer
Returns aTagContextBinarySerializer
that serializes allTagContext
s to zero bytes and deserializes all inputs to emptyTagContext
s.(package private) static TagContextBuilder
Returns aTagContextBuilder
that ignores all calls toTagContextBuilder.put(io.opencensus.tags.TagKey, io.opencensus.tags.TagValue)
.(package private) static TagContextTextFormat
Returns aTagContextTextFormat
that serializes allTagContext
s to empty strings and deserializes all inputs to emptyTagContext
s.(package private) static Tagger
Returns aTagger
that only producesTagContext
s with no tags.(package private) static TagPropagationComponent
Returns aTagPropagationComponent
that contains no-op serializers.(package private) static TagsComponent
Returns aTagsComponent
that has a no-op implementation forTagger
.
-
Constructor Details
-
NoopTags
private NoopTags()
-
-
Method Details
-
newNoopTagsComponent
Returns aTagsComponent
that has a no-op implementation forTagger
.- Returns:
- a
TagsComponent
that has a no-op implementation forTagger
.
-
getNoopTagger
Returns aTagger
that only producesTagContext
s with no tags.- Returns:
- a
Tagger
that only producesTagContext
s with no tags.
-
getNoopTagContextBuilder
Returns aTagContextBuilder
that ignores all calls toTagContextBuilder.put(io.opencensus.tags.TagKey, io.opencensus.tags.TagValue)
.- Returns:
- a
TagContextBuilder
that ignores all calls toTagContextBuilder.put(io.opencensus.tags.TagKey, io.opencensus.tags.TagValue)
.
-
getNoopTagContext
Returns aTagContext
that does not contain any tags.- Returns:
- a
TagContext
that does not contain any tags.
-
getNoopTagPropagationComponent
Returns aTagPropagationComponent
that contains no-op serializers. -
getNoopTagContextBinarySerializer
Returns aTagContextBinarySerializer
that serializes allTagContext
s to zero bytes and deserializes all inputs to emptyTagContext
s. -
getNoopTagContextTextSerializer
Returns aTagContextTextFormat
that serializes allTagContext
s to empty strings and deserializes all inputs to emptyTagContext
s.
-