OpenTelemetry PHP

KeyValueAndUnit extends Message
in package

A custom 'dictionary native' style of encoding attributes which is more convenient for profiles than opentelemetry.proto.common.v1.KeyValue Specifically, uses the string table for keys and allows optional unit information.

Generated from protobuf message opentelemetry.proto.profiles.v1development.KeyValueAndUnit

Table of Contents

Properties

$key_strindex  : mixed
Generated from protobuf field <code>int32 key_strindex = 1;</code>
$unit_strindex  : mixed
zero indicates implicit (by semconv) or non-defined unit.
$value  : mixed
Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>

Methods

__construct()  : mixed
Constructor.
clearValue()  : mixed
getKeyStrindex()  : int
Generated from protobuf field <code>int32 key_strindex = 1;</code>
getUnitStrindex()  : int
zero indicates implicit (by semconv) or non-defined unit.
getValue()  : AnyValue|null
Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>
hasValue()  : mixed
setKeyStrindex()  : $this
Generated from protobuf field <code>int32 key_strindex = 1;</code>
setUnitStrindex()  : $this
zero indicates implicit (by semconv) or non-defined unit.
setValue()  : $this
Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>

Properties

$key_strindex

Generated from protobuf field <code>int32 key_strindex = 1;</code>

protected mixed $key_strindex = 0

$unit_strindex

zero indicates implicit (by semconv) or non-defined unit.

protected mixed $unit_strindex = 0

Generated from protobuf field int32 unit_strindex = 3;

$value

Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>

protected mixed $value = null

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 int $key_strindex
@type \Opentelemetry\Proto\Common\V1\AnyValue $value
@type int $unit_strindex
      zero indicates implicit (by semconv) or non-defined unit.

}

getKeyStrindex()

Generated from protobuf field <code>int32 key_strindex = 1;</code>

public getKeyStrindex() : int
Return values
int

getUnitStrindex()

zero indicates implicit (by semconv) or non-defined unit.

public getUnitStrindex() : int

Generated from protobuf field int32 unit_strindex = 3;

Return values
int

getValue()

Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>

public getValue() : AnyValue|null
Return values
AnyValue|null

setKeyStrindex()

Generated from protobuf field <code>int32 key_strindex = 1;</code>

public setKeyStrindex(int $var) : $this
Parameters
$var : int
Return values
$this

setUnitStrindex()

zero indicates implicit (by semconv) or non-defined unit.

public setUnitStrindex(int $var) : $this

Generated from protobuf field int32 unit_strindex = 3;

Parameters
$var : int
Return values
$this

setValue()

Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>

public setValue(AnyValue $var) : $this
Parameters
$var : AnyValue
Return values
$this

        
On this page

Search results