Top Description Methods
io.opentelemetry.api.common

public Interface KeyValue

Known Direct Implementers
io.opentelemetry.api.common.KeyValueImpl

Key-value pair of String key and Value value.
Since
1.42.0
See Also
Value#of(KeyValue...)

Method Summary

Modifier and TypeMethod and Description
public String
getKey()

Returns the key.

public Value<?>
getValue()

Returns the value.

public static KeyValue
of(String key, Value<?> value)

Returns a KeyValue for the given key and value.

Method Detail

getKeyback to summary
public String getKey()

Returns the key.

getValueback to summary
public Value<?> getValue()

Returns the value.

ofback to summary
public static KeyValue of(String key, Value<?> value)

Returns a KeyValue for the given key and value.