Package io.opencensus.tags
Class NoopTags
- java.lang.Object
-
- io.opencensus.tags.NoopTags
-
final class NoopTags extends java.lang.Object
No-op implementations of tagging classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
NoopTags.NoopTagContext
private static class
NoopTags.NoopTagContextBinarySerializer
private static class
NoopTags.NoopTagContextBuilder
private static class
NoopTags.NoopTagContextTextFormat
private static class
NoopTags.NoopTagger
private static class
NoopTags.NoopTagPropagationComponent
private static class
NoopTags.NoopTagsComponent
-
Constructor Summary
Constructors Modifier Constructor Description private
NoopTags()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static TagContext
getNoopTagContext()
Returns aTagContext
that does not contain any tags.(package private) static TagContextBinarySerializer
getNoopTagContextBinarySerializer()
Returns aTagContextBinarySerializer
that serializes allTagContext
s to zero bytes and deserializes all inputs to emptyTagContext
s.(package private) static TagContextBuilder
getNoopTagContextBuilder()
Returns aTagContextBuilder
that ignores all calls toTagContextBuilder.put(io.opencensus.tags.TagKey, io.opencensus.tags.TagValue)
.(package private) static TagContextTextFormat
getNoopTagContextTextSerializer()
Returns aTagContextTextFormat
that serializes allTagContext
s to empty strings and deserializes all inputs to emptyTagContext
s.(package private) static Tagger
getNoopTagger()
Returns aTagger
that only producesTagContext
s with no tags.(package private) static TagPropagationComponent
getNoopTagPropagationComponent()
Returns aTagPropagationComponent
that contains no-op serializers.(package private) static TagsComponent
newNoopTagsComponent()
Returns aTagsComponent
that has a no-op implementation forTagger
.
-
-
-
Method Detail
-
newNoopTagsComponent
static TagsComponent newNoopTagsComponent()
Returns aTagsComponent
that has a no-op implementation forTagger
.- Returns:
- a
TagsComponent
that has a no-op implementation forTagger
.
-
getNoopTagger
static Tagger getNoopTagger()
Returns aTagger
that only producesTagContext
s with no tags.- Returns:
- a
Tagger
that only producesTagContext
s with no tags.
-
getNoopTagContextBuilder
static TagContextBuilder 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
static TagContext getNoopTagContext()
Returns aTagContext
that does not contain any tags.- Returns:
- a
TagContext
that does not contain any tags.
-
getNoopTagPropagationComponent
static TagPropagationComponent getNoopTagPropagationComponent()
Returns aTagPropagationComponent
that contains no-op serializers.
-
getNoopTagContextBinarySerializer
static TagContextBinarySerializer getNoopTagContextBinarySerializer()
Returns aTagContextBinarySerializer
that serializes allTagContext
s to zero bytes and deserializes all inputs to emptyTagContext
s.
-
getNoopTagContextTextSerializer
static TagContextTextFormat getNoopTagContextTextSerializer()
Returns aTagContextTextFormat
that serializes allTagContext
s to empty strings and deserializes all inputs to emptyTagContext
s.
-
-