Package io.opencensus.tags
Class NoopTags.NoopTagsComponent
java.lang.Object
io.opencensus.tags.TagsComponent
io.opencensus.tags.NoopTags.NoopTagsComponent
- Enclosing class:
NoopTags
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetState()
Returns the currentTaggingState
.Returns theTagger
for this implementation.Returns theTagPropagationComponent
for this implementation.void
setState
(TaggingState state) Deprecated.
-
Field Details
-
isRead
private volatile boolean isRead
-
-
Constructor Details
-
NoopTagsComponent
private NoopTagsComponent()
-
-
Method Details
-
getTagger
Description copied from class:TagsComponent
Returns theTagger
for this implementation.- Specified by:
getTagger
in classTagsComponent
-
getTagPropagationComponent
Description copied from class:TagsComponent
Returns theTagPropagationComponent
for this implementation.- Specified by:
getTagPropagationComponent
in classTagsComponent
-
getState
Description copied from class:TagsComponent
Returns the currentTaggingState
.When no implementation is available,
getState
always returnsTaggingState.DISABLED
.Once
TagsComponent.getState()
is called, subsequent calls toTagsComponent.setState(TaggingState)
will throw anIllegalStateException
.- Specified by:
getState
in classTagsComponent
- Returns:
- the current
TaggingState
.
-
setState
Deprecated.Description copied from class:TagsComponent
Sets the currentTaggingState
.When no implementation is available,
setState
does not change the state.- Specified by:
setState
in classTagsComponent
- Parameters:
state
- the newTaggingState
.
-