Class TaggerImpl

java.lang.Object
io.opencensus.tags.Tagger
io.opencensus.implcore.tags.TaggerImpl

public final class TaggerImpl extends Tagger
Implementation of Tagger.
  • Field Details

  • Constructor Details

  • Method Details

    • empty

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

      public TagMapImpl 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.
    • 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.
    • 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.
    • 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.
    • toTagMapImpl

      private static TagMapImpl toTagMapImpl(TagContext tags)
    • toTagMapBuilderImpl

      private static TagMapBuilderImpl toTagMapBuilderImpl(TagContext tags)