Class TaggerImpl
java.lang.Object
io.opencensus.tags.Tagger
io.opencensus.implcore.tags.TaggerImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a new builder created from the currentTagContext.empty()Returns an emptyTagContext.Returns a new emptyBuilder.Returns the currentTagContext.toBuilder(TagContext tags) Returns a builder based on thisTagContext.private static TagMapBuilderImplprivate static TagMapImpltoTagMapImpl(TagContext tags) withTagContext(TagContext tags) Enters the scope of code where the givenTagContextis in the current context (replacing the previousTagContext) and returns an object that represents that scope.
-
Field Details
-
state
-
-
Constructor Details
-
TaggerImpl
TaggerImpl(CurrentState state)
-
-
Method Details
-
empty
Description copied from class:TaggerReturns an emptyTagContext. -
getCurrentTagContext
Description copied from class:TaggerReturns the currentTagContext.- Specified by:
getCurrentTagContextin classTagger- Returns:
- the current
TagContext.
-
emptyBuilder
Description copied from class:TaggerReturns a new emptyBuilder.- Specified by:
emptyBuilderin classTagger- Returns:
- a new empty
Builder.
-
currentBuilder
Description copied from class:TaggerReturns a new builder created from the currentTagContext.- Specified by:
currentBuilderin classTagger- Returns:
- a new builder created from the current
TagContext.
-
toBuilder
Description copied from class:TaggerReturns a builder based on thisTagContext. -
withTagContext
Description copied from class:TaggerEnters the scope of code where the givenTagContextis in the current context (replacing the previousTagContext) and returns an object that represents that scope. The scope is exited when the returned object is closed.- Specified by:
withTagContextin classTagger- Parameters:
tags- theTagContextto be set to the current context.- Returns:
- an object that defines a scope where the given
TagContextis set to the current context.
-
toTagMapImpl
-
toTagMapBuilderImpl
-