Class ThresholdLogSpanContext
java.lang.Object
com.couchbase.client.core.tracing.ThresholdLogSpanContext
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionbaggageItem
(String item) Retrieve the baggage value by item.baggageItem
(String item, String value) Stores the given baggage item/value.
-
Constructor Details
-
ThresholdLogSpanContext
public ThresholdLogSpanContext()Creates a newThresholdLogSpanContext
with empty baggage.
-
-
Method Details
-
baggageItems
- Specified by:
baggageItems
in interfaceio.opentracing.SpanContext
-
baggageItem
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.
-
baggageItem
Retrieve the baggage value by item.- Parameters:
item
- the item to look up.- Returns:
- the value if found, null otherwise.
-