Class ThresholdLogSpanContext
- java.lang.Object
-
- com.couchbase.client.core.tracing.ThresholdLogSpanContext
-
- All Implemented Interfaces:
io.opentracing.SpanContext
public class ThresholdLogSpanContext extends Object implements io.opentracing.SpanContext
Holds baggage items for the slow operation spans. This class is thread safe!- Since:
- 1.6.0
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description ThresholdLogSpanContext()
Creates a newThresholdLogSpanContext
with empty baggage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
baggageItem(String item)
Retrieve the baggage value by item.ThresholdLogSpanContext
baggageItem(String item, String value)
Stores the given baggage item/value.Iterable<Map.Entry<String,String>>
baggageItems()
-
-
-
Constructor Detail
-
ThresholdLogSpanContext
public ThresholdLogSpanContext()
Creates a newThresholdLogSpanContext
with empty baggage.
-
-
Method Detail
-
baggageItems
public Iterable<Map.Entry<String,String>> baggageItems()
- Specified by:
baggageItems
in interfaceio.opentracing.SpanContext
-
baggageItem
public ThresholdLogSpanContext baggageItem(String item, String value)
Stores the given baggage item/value. If an item already exists, it will be overridden.- Parameters:
item
- the item to store.value
- the value to store.- Returns:
- this
ThresholdLogSpanContext
for chaining purposes.
-
-