Top Description Fields Methods
io.micrometer.tracing

public Interface BaggageView

Known Direct Subinterfaces
io.micrometer.tracing.Baggage, io.micrometer.tracing.BaggageInScope
Imports
io.micrometer.common.lang.Nullable

Inspired by OpenZipkin Brave's BaggageField. Represents a single, immutable baggage entry.
Authors
Marcin Grzejszczak, Jonatan Ivanov
Since
1.0.0

Field Summary

Modifier and TypeField and Description
public static final BaggageView
NOOP

A noop implementation.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

value of the baggage entry or null if not set.
get
()

Retrieves baggage value.

public String

Returns:

value of the baggage entry or null if not set.
get
(TraceContext
context containing baggage
traceContext
)

Retrieves baggage value from the given TraceContext.

public String

Returns:

name of the baggage entry
name
()

Retrieves baggage name.

Field Detail

NOOPback to summary
public static final BaggageView NOOP

A noop implementation.

Method Detail

getback to summary
public String get()

Retrieves baggage value.

Returns:String

value of the baggage entry or null if not set.

Annotations
@Nullable
getback to summary
public String get(TraceContext traceContext)

Retrieves baggage value from the given TraceContext.

Parameters
traceContext:TraceContext

context containing baggage

Returns:String

value of the baggage entry or null if not set.

Annotations
@Nullable
nameback to summary
public String name()

Retrieves baggage name.

Returns:String

name of the baggage entry