public class ThresholdLogSpanContext extends Object implements io.opentracing.SpanContext
Holds baggage items for the slow operation spans.
This class is thread safe!
Constructor and Description |
---|
ThresholdLogSpanContext()
Creates a new
ThresholdLogSpanContext with empty baggage. |
Modifier and Type | Method and 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() |
public ThresholdLogSpanContext()
Creates a new ThresholdLogSpanContext
with empty baggage.
public Iterable<Map.Entry<String,String>> baggageItems()
baggageItems
in interface io.opentracing.SpanContext
public ThresholdLogSpanContext baggageItem(String item, String value)
Stores the given baggage item/value.
If an item already exists, it will be overridden.
item
- the item to store.value
- the value to store.ThresholdLogSpanContext
for chaining purposes.Copyright © 2018 Couchbase, Inc.. All rights reserved.