class Tag

A tag is a key-value pair.

Tags are values propagated through the Context subsystem inside a process and among processes by any transport (e.g RPC, HTTP, etc.). For example tags are used by the Stats component to break down measurements by arbitrary metadata set in the current process or propagated from a remote caller.

Methods

__construct(TagKey $key, TagValue $value)

Creates a Tag out of a TagKey and TagValue.

getKey()

Returns the TagKey.

getValue()

Returns the TagValue.

Details

at line 42
final __construct(TagKey $key, TagValue $value)

Creates a Tag out of a TagKey and TagValue.

Parameters

TagKey $key The TagKey.
TagValue $value The TagValue.

at line 53
final TagKey getKey()

Returns the TagKey.

Return Value

TagKey

at line 63
final TagValue getValue()

Returns the TagValue.

Return Value

TagValue