Class NoopRequestSpan
java.lang.Object
com.couchbase.client.core.cnc.tracing.NoopRequestSpan
- All Implemented Interfaces:
RequestSpan
A NOOP implementation of a request span, utilized by the
NoopRequestTracer
.
Calling individual methods on this span won't do anything, since, well, it's a noop.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.RequestSpan
RequestSpan.StatusCode
-
Field Summary
Modifier and TypeFieldDescriptionstatic final NoopRequestSpan
Holds a single, static representation of this span. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.void
Sets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.void
Sets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.void
end()
Completes this span.void
Sets an event on the span, which is translated to the corresponding implementation specific event.void
requestContext
(RequestContext requestContext) Allows to set a request context to the request span.void
status
(RequestSpan.StatusCode status) Sets the status of the span, which is by default UNSET.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.cnc.RequestSpan
lowCardinalityAttribute, lowCardinalityAttribute, lowCardinalityAttribute, recordException
-
Field Details
-
INSTANCE
Holds a single, static representation of this span.
-
-
Method Details
-
attribute
Description copied from interface:RequestSpan
Sets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.Note that, depending on the implementation, attributes might be ignored.
- Specified by:
attribute
in interfaceRequestSpan
- Parameters:
key
- the key of the attribute.value
- the value of the attribute.
-
attribute
Description copied from interface:RequestSpan
Sets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.Note that, depending on the implementation, attributes might be ignored.
- Specified by:
attribute
in interfaceRequestSpan
- Parameters:
key
- the key of the attribute.value
- the value of the attribute.
-
attribute
Description copied from interface:RequestSpan
Sets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.Note that, depending on the implementation, attributes might be ignored.
- Specified by:
attribute
in interfaceRequestSpan
- Parameters:
key
- the key of the attribute.value
- the value of the attribute.
-
event
Description copied from interface:RequestSpan
Sets an event on the span, which is translated to the corresponding implementation specific event.Note that, depending on the implementation, events might be ignored.
- Specified by:
event
in interfaceRequestSpan
- Parameters:
name
- the name of the eventtimestamp
- the timestamp when it happened.
-
status
Description copied from interface:RequestSpan
Sets the status of the span, which is by default UNSET.Note that, depending on the implementation, this might be a no-op.
- Specified by:
status
in interfaceRequestSpan
- Parameters:
status
- the span's new status.
-
end
public void end()Description copied from interface:RequestSpan
Completes this span.- Specified by:
end
in interfaceRequestSpan
-
requestContext
Description copied from interface:RequestSpan
Allows to set a request context to the request span.- Specified by:
requestContext
in interfaceRequestSpan
- Parameters:
requestContext
- the request context, if present.
-