Package io.opencensus.tags
Class NoopTags
- java.lang.Object
-
- io.opencensus.tags.NoopTags
-
final class NoopTags extends java.lang.ObjectNo-op implementations of tagging classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classNoopTags.NoopTagContextprivate static classNoopTags.NoopTagContextBinarySerializerprivate static classNoopTags.NoopTagContextBuilderprivate static classNoopTags.NoopTagContextTextFormatprivate static classNoopTags.NoopTaggerprivate static classNoopTags.NoopTagPropagationComponentprivate static classNoopTags.NoopTagsComponent
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopTags()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static TagContextgetNoopTagContext()Returns aTagContextthat does not contain any tags.(package private) static TagContextBinarySerializergetNoopTagContextBinarySerializer()Returns aTagContextBinarySerializerthat serializes allTagContexts to zero bytes and deserializes all inputs to emptyTagContexts.(package private) static TagContextBuildergetNoopTagContextBuilder()Returns aTagContextBuilderthat ignores all calls toTagContextBuilder.put(io.opencensus.tags.TagKey, io.opencensus.tags.TagValue).(package private) static TagContextTextFormatgetNoopTagContextTextSerializer()Returns aTagContextTextFormatthat serializes allTagContexts to empty strings and deserializes all inputs to emptyTagContexts.(package private) static TaggergetNoopTagger()Returns aTaggerthat only producesTagContexts with no tags.(package private) static TagPropagationComponentgetNoopTagPropagationComponent()Returns aTagPropagationComponentthat contains no-op serializers.(package private) static TagsComponentnewNoopTagsComponent()Returns aTagsComponentthat has a no-op implementation forTagger.
-
-
-
Method Detail
-
newNoopTagsComponent
static TagsComponent newNoopTagsComponent()
Returns aTagsComponentthat has a no-op implementation forTagger.- Returns:
- a
TagsComponentthat has a no-op implementation forTagger.
-
getNoopTagger
static Tagger getNoopTagger()
Returns aTaggerthat only producesTagContexts with no tags.- Returns:
- a
Taggerthat only producesTagContexts with no tags.
-
getNoopTagContextBuilder
static TagContextBuilder getNoopTagContextBuilder()
Returns aTagContextBuilderthat ignores all calls toTagContextBuilder.put(io.opencensus.tags.TagKey, io.opencensus.tags.TagValue).- Returns:
- a
TagContextBuilderthat ignores all calls toTagContextBuilder.put(io.opencensus.tags.TagKey, io.opencensus.tags.TagValue).
-
getNoopTagContext
static TagContext getNoopTagContext()
Returns aTagContextthat does not contain any tags.- Returns:
- a
TagContextthat does not contain any tags.
-
getNoopTagPropagationComponent
static TagPropagationComponent getNoopTagPropagationComponent()
Returns aTagPropagationComponentthat contains no-op serializers.
-
getNoopTagContextBinarySerializer
static TagContextBinarySerializer getNoopTagContextBinarySerializer()
Returns aTagContextBinarySerializerthat serializes allTagContexts to zero bytes and deserializes all inputs to emptyTagContexts.
-
getNoopTagContextTextSerializer
static TagContextTextFormat getNoopTagContextTextSerializer()
Returns aTagContextTextFormatthat serializes allTagContexts to empty strings and deserializes all inputs to emptyTagContexts.
-
-