OpenTelemetry PHP

KeyValueList extends Message
in package

KeyValueList is a list of KeyValue messages. We need KeyValueList as a message since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches are semantically equivalent.

Generated from protobuf message opentelemetry.proto.common.v1.KeyValueList

Table of Contents

Properties

$values  : mixed
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements).

Methods

__construct()  : mixed
Constructor.
getValues()  : RepeatedField
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements).
setValues()  : $this
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements).

Properties

$values

A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements).

private mixed $values

The keys MUST be unique (it is not allowed to have more than one value with the same key).

Generated from protobuf field repeated .opentelemetry.proto.common.v1.KeyValue values = 1;

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ Optional. Data for populating the Message object.

@type \Opentelemetry\Proto\Common\V1\KeyValue[]|\Google\Protobuf\Internal\RepeatedField $values
      A collection of key/value pairs of key-value pairs. The list may be empty (may
      contain 0 elements).
      The keys MUST be unique (it is not allowed to have more than one
      value with the same key).

}

getValues()

A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements).

public getValues() : RepeatedField

The keys MUST be unique (it is not allowed to have more than one value with the same key).

Generated from protobuf field repeated .opentelemetry.proto.common.v1.KeyValue values = 1;

Return values
RepeatedField

setValues()

A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements).

public setValues(array<string|int, KeyValue>|RepeatedField $var) : $this

The keys MUST be unique (it is not allowed to have more than one value with the same key).

Generated from protobuf field repeated .opentelemetry.proto.common.v1.KeyValue values = 1;

Parameters
$var : array<string|int, KeyValue>|RepeatedField
Return values
$this

        
On this page

Search results