Top Description Methods
io.opentelemetry.api.baggage

public Interface BaggageEntryMetadata

Known Direct Implementers
io.opentelemetry.api.baggage.ImmutableEntryMetadata
Annotations
@Immutable
Imports
javax.annotation.concurrent.Immutable

Metadata associated with an BaggageEntry. For the moment this is an opaque wrapper for a String metadata value.

Method Summary

Modifier and TypeMethod and Description
public static BaggageEntryMetadata
create(String metadata)

Returns a new BaggageEntryMetadata with the given value.

public static BaggageEntryMetadata
empty()

Returns an empty BaggageEntryMetadata.

public String
getValue()

Returns the String value of this BaggageEntryMetadata.

Method Detail

createback to summary
public static BaggageEntryMetadata create(String metadata)

Returns a new BaggageEntryMetadata with the given value.

emptyback to summary
public static BaggageEntryMetadata empty()

Returns an empty BaggageEntryMetadata.

getValueback to summary
public String getValue()

Returns the String value of this BaggageEntryMetadata.