Top Description Constructors Methods
io.micrometer.tracing.contextpropagation.reactor

public final Class ReactorBaggage

extends Object
Class Inheritance
Imports
io.micrometer.tracing.contextpropagation.ObservationAwareBaggageThreadLocalAccessor, .BaggageToPropagate, reactor.util.context.Context, java.util.HashMap, .Map, java.util.function.Function

Helper class to work with Reactor Context and BaggageToPropagate.
Author
Marcin Grzejszczak
Since
1.2.2

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Function<Context, Context>

Returns:

function transforming Context to append the baggage entry to the existing baggage
append
(String
baggage key
key
,
String
baggage value
value
)

Appends a single baggage entry to the existing Function.

public static Function<Context, Context>

Returns:

function transforming Context to append the baggage entries to the existing baggage
append
(Map<String, String>
baggage entries
baggage
)

Appends baggage entries to the existing Function.

private static Context
append(Context context, Map<String, String> baggage)

private static Context
append(Context context, String key, String value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ReactorBaggageback to summary
private ReactorBaggage()

Method Detail

appendback to summary
public static Function<Context, Context> append(String key, String value)

Appends a single baggage entry to the existing Function.

Parameters
key:String

baggage key

value:String

baggage value

Returns:Function<Context, Context>

function transforming Context to append the baggage entry to the existing baggage

appendback to summary
public static Function<Context, Context> append(Map<String, String> baggage)

Appends baggage entries to the existing Function.

Parameters
baggage:Map<String, String>

baggage entries

Returns:Function<Context, Context>

function transforming Context to append the baggage entries to the existing baggage

appendback to summary
private static Context append(Context context, Map<String, String> baggage)
appendback to summary
private static Context append(Context context, String key, String value)