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 Type Method Description int
compareTo(ThresholdLogSpan o)
ThresholdLogSpanContext
context()
long
durationMicros()
Returns the relative duration in microseconds.void
finish()
void
finish(long finishMicros)
String
getBaggageItem(String key)
ThresholdLogSpan
log(long timestampMicroseconds, String event)
ThresholdLogSpan
log(long timestampMicroseconds, Map<String,?> fields)
ThresholdLogSpan
log(String event)
ThresholdLogSpan
log(Map<String,?> fields)
String
operationName()
Returns the operation name.CouchbaseRequest
request()
void
request(CouchbaseRequest request)
ThresholdLogSpan
setBaggageItem(String key, String value)
ThresholdLogSpan
setOperationName(String operationName)
ThresholdLogSpan
setTag(String key, boolean value)
ThresholdLogSpan
setTag(String key, Number value)
ThresholdLogSpan
setTag(String key, String value)
Object
tag(String key)
Returns a tag if set, null otherwise.Map<String,Object>
tags()
Returns the set tags.String
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
-