Class NoopTags.NoopTagger

java.lang.Object
io.opencensus.tags.Tagger
io.opencensus.tags.NoopTags.NoopTagger
Enclosing class:
NoopTags

@Immutable private static final class NoopTags.NoopTagger extends Tagger
  • Field Details

    • INSTANCE

      static final Tagger INSTANCE
  • Constructor Details

    • NoopTagger

      private NoopTagger()
  • Method Details

    • empty

      public TagContext empty()
      Description copied from class: Tagger
      Returns an empty TagContext.
      Specified by:
      empty in class Tagger
      Returns:
      an empty TagContext.
    • getCurrentTagContext

      public TagContext getCurrentTagContext()
      Description copied from class: Tagger
      Returns the current TagContext.
      Specified by:
      getCurrentTagContext in class Tagger
      Returns:
      the current TagContext.
    • emptyBuilder

      public TagContextBuilder emptyBuilder()
      Description copied from class: Tagger
      Returns a new empty Builder.
      Specified by:
      emptyBuilder in class Tagger
      Returns:
      a new empty Builder.
    • toBuilder

      public TagContextBuilder toBuilder(TagContext tags)
      Description copied from class: Tagger
      Returns a builder based on this TagContext.
      Specified by:
      toBuilder in class Tagger
      Returns:
      a builder based on this TagContext.
    • currentBuilder

      public TagContextBuilder currentBuilder()
      Description copied from class: Tagger
      Returns a new builder created from the current TagContext.
      Specified by:
      currentBuilder in class Tagger
      Returns:
      a new builder created from the current TagContext.
    • withTagContext

      public Scope withTagContext(TagContext tags)
      Description copied from class: Tagger
      Enters the scope of code where the given TagContext is in the current context (replacing the previous TagContext) and returns an object that represents that scope. The scope is exited when the returned object is closed.
      Specified by:
      withTagContext in class Tagger
      Parameters:
      tags - the TagContext to be set to the current context.
      Returns:
      an object that defines a scope where the given TagContext is set to the current context.