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
-
-
-
Method Detail
-
context
public ThresholdLogSpanContext context()
- Specified by:
context
in interfaceio.opentracing.Span
-
setTag
public ThresholdLogSpan setTag(String key, String value)
- Specified by:
setTag
in interfaceio.opentracing.Span
-
setTag
public ThresholdLogSpan setTag(String key, boolean value)
- Specified by:
setTag
in interfaceio.opentracing.Span
-
setTag
public ThresholdLogSpan setTag(String key, Number value)
- Specified by:
setTag
in interfaceio.opentracing.Span
-
log
public ThresholdLogSpan log(Map<String,?> fields)
- Specified by:
log
in interfaceio.opentracing.Span
-
log
public ThresholdLogSpan log(String event)
- Specified by:
log
in interfaceio.opentracing.Span
-
log
public ThresholdLogSpan log(long timestampMicroseconds, Map<String,?> fields)
- Specified by:
log
in interfaceio.opentracing.Span
-
log
public ThresholdLogSpan log(long timestampMicroseconds, String event)
- Specified by:
log
in interfaceio.opentracing.Span
-
setBaggageItem
public ThresholdLogSpan setBaggageItem(String key, String value)
- Specified by:
setBaggageItem
in interfaceio.opentracing.Span
-
getBaggageItem
public String getBaggageItem(String key)
- Specified by:
getBaggageItem
in interfaceio.opentracing.Span
-
setOperationName
public ThresholdLogSpan setOperationName(String operationName)
- Specified by:
setOperationName
in interfaceio.opentracing.Span
-
compareTo
public int compareTo(ThresholdLogSpan o)
- 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
public String operationName()
Returns the operation name.
-
tag
public Object tag(String key)
Returns a tag if set, null otherwise.- Parameters:
key
- the key to check.- Returns:
- returns the value or null if not set.
-
request
public CouchbaseRequest request()
-
request
public void request(CouchbaseRequest request)
-
finish
public void finish(long finishMicros)
- Specified by:
finish
in interfaceio.opentracing.Span
-
-