Class NoopTags

java.lang.Object
io.opencensus.tags.NoopTags

final class NoopTags extends Object
No-op implementations of tagging classes.
  • Constructor Details

    • NoopTags

      private NoopTags()
  • Method Details

    • newNoopTagsComponent

      static TagsComponent newNoopTagsComponent()
      Returns a TagsComponent that has a no-op implementation for Tagger.
      Returns:
      a TagsComponent that has a no-op implementation for Tagger.
    • getNoopTagger

      static Tagger getNoopTagger()
      Returns a Tagger that only produces TagContexts with no tags.
      Returns:
      a Tagger that only produces TagContexts with no tags.
    • getNoopTagContextBuilder

      static TagContextBuilder getNoopTagContextBuilder()
      Returns a TagContextBuilder that ignores all calls to TagContextBuilder.put(io.opencensus.tags.TagKey, io.opencensus.tags.TagValue).
      Returns:
      a TagContextBuilder that ignores all calls to TagContextBuilder.put(io.opencensus.tags.TagKey, io.opencensus.tags.TagValue).
    • getNoopTagContext

      static TagContext getNoopTagContext()
      Returns a TagContext that does not contain any tags.
      Returns:
      a TagContext that does not contain any tags.
    • getNoopTagPropagationComponent

      static TagPropagationComponent getNoopTagPropagationComponent()
      Returns a TagPropagationComponent that contains no-op serializers.
    • getNoopTagContextBinarySerializer

      static TagContextBinarySerializer getNoopTagContextBinarySerializer()
      Returns a TagContextBinarySerializer that serializes all TagContexts to zero bytes and deserializes all inputs to empty TagContexts.
    • getNoopTagContextTextSerializer

      static TagContextTextFormat getNoopTagContextTextSerializer()
      Returns a TagContextTextFormat that serializes all TagContexts to empty strings and deserializes all inputs to empty TagContexts.