Class ThresholdLogSpan
java.lang.Object
com.couchbase.client.core.tracing.ThresholdLogSpan
- All Implemented Interfaces:
io.opentracing.Span
,Comparable<ThresholdLogSpan>
public class ThresholdLogSpan
extends Object
implements io.opentracing.Span, Comparable<ThresholdLogSpan>
-
Method Summary
Modifier and TypeMethodDescriptionint
context()
long
Returns the relative duration in microseconds.void
finish()
void
finish
(long finishMicros) getBaggageItem
(String key) Returns the operation name.request()
void
request
(CouchbaseRequest request) setBaggageItem
(String key, String value) setOperationName
(String operationName) Returns a tag if set, null otherwise.tags()
Returns the set tags.toString()
-
Method Details
-
context
- Specified by:
context
in interfaceio.opentracing.Span
-
setTag
- Specified by:
setTag
in interfaceio.opentracing.Span
-
setTag
- Specified by:
setTag
in interfaceio.opentracing.Span
-
setTag
- Specified by:
setTag
in interfaceio.opentracing.Span
-
log
- Specified by:
log
in interfaceio.opentracing.Span
-
log
- Specified by:
log
in interfaceio.opentracing.Span
-
log
- Specified by:
log
in interfaceio.opentracing.Span
-
log
- Specified by:
log
in interfaceio.opentracing.Span
-
setBaggageItem
- Specified by:
setBaggageItem
in interfaceio.opentracing.Span
-
getBaggageItem
- Specified by:
getBaggageItem
in interfaceio.opentracing.Span
-
setOperationName
- Specified by:
setOperationName
in interfaceio.opentracing.Span
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ThresholdLogSpan>
-
finish
public void finish()- Specified by:
finish
in interfaceio.opentracing.Span
-
durationMicros
public long durationMicros()Returns the relative duration in microseconds. -
operationName
Returns the operation name. -
tags
Returns the set tags. -
tag
Returns a tag if set, null otherwise.- Parameters:
key
- the key to check.- Returns:
- returns the value or null if not set.
-
request
-
request
-
finish
public void finish(long finishMicros) - Specified by:
finish
in interfaceio.opentracing.Span
-
toString
-