Class NoopTags
java.lang.Object
io.opencensus.tags.NoopTags
No-op implementations of tagging classes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final classprivate static final classprivate static final classprivate static final classprivate static final classprivate static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static TagContextReturns aTagContextthat does not contain any tags.(package private) static TagContextBinarySerializerReturns aTagContextBinarySerializerthat serializes allTagContexts to zero bytes and deserializes all inputs to emptyTagContexts.(package private) static TagContextBuilderReturns aTagContextBuilderthat ignores all calls toTagContextBuilder.put(TagKey, TagValue).(package private) static TagContextTextFormatReturns aTagContextTextFormatthat serializes allTagContexts to empty strings and deserializes all inputs to emptyTagContexts.(package private) static TaggerReturns aTaggerthat only producesTagContexts with no tags.(package private) static TagPropagationComponentReturns aTagPropagationComponentthat contains no-op serializers.(package private) static TagsComponentReturns aTagsComponentthat has a no-op implementation forTagger.
-
Constructor Details
-
NoopTags
private NoopTags()
-
-
Method Details
-
newNoopTagsComponent
Returns aTagsComponentthat has a no-op implementation forTagger.- Returns:
- a
TagsComponentthat has a no-op implementation forTagger.
-
getNoopTagger
Returns aTaggerthat only producesTagContexts with no tags.- Returns:
- a
Taggerthat only producesTagContexts with no tags.
-
getNoopTagContextBuilder
Returns aTagContextBuilderthat ignores all calls toTagContextBuilder.put(TagKey, TagValue).- Returns:
- a
TagContextBuilderthat ignores all calls toTagContextBuilder.put(TagKey, TagValue).
-
getNoopTagContext
Returns aTagContextthat does not contain any tags.- Returns:
- a
TagContextthat does not contain any tags.
-
getNoopTagPropagationComponent
Returns aTagPropagationComponentthat contains no-op serializers. -
getNoopTagContextBinarySerializer
Returns aTagContextBinarySerializerthat serializes allTagContexts to zero bytes and deserializes all inputs to emptyTagContexts. -
getNoopTagContextTextSerializer
Returns aTagContextTextFormatthat serializes allTagContexts to empty strings and deserializes all inputs to emptyTagContexts.
-