OpenTelemetry PHP

Resource extends Message
in package

Resource information.

Generated from protobuf message opentelemetry.proto.resource.v1.Resource

Table of Contents

Properties

$dropped_attributes_count  : mixed
dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.
$attributes  : mixed
Set of attributes that describe the resource.

Methods

__construct()  : mixed
Constructor.
getAttributes()  : RepeatedField
Set of attributes that describe the resource.
getDroppedAttributesCount()  : int
dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.
setAttributes()  : $this
Set of attributes that describe the resource.
setDroppedAttributesCount()  : $this
dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.

Properties

$dropped_attributes_count

dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.

protected mixed $dropped_attributes_count = 0

Generated from protobuf field uint32 dropped_attributes_count = 2;

$attributes

Set of attributes that describe the resource.

private mixed $attributes

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

Generated from protobuf field repeated .opentelemetry.proto.common.v1.KeyValue attributes = 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 $attributes
      Set of attributes that describe the resource.
      Attribute keys MUST be unique (it is not allowed to have more than one
      attribute with the same key).
@type int $dropped_attributes_count
      dropped_attributes_count is the number of dropped attributes. If the value is 0, then
      no attributes were dropped.

}

getAttributes()

Set of attributes that describe the resource.

public getAttributes() : RepeatedField

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

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

Return values
RepeatedField

getDroppedAttributesCount()

dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.

public getDroppedAttributesCount() : int

Generated from protobuf field uint32 dropped_attributes_count = 2;

Return values
int

setAttributes()

Set of attributes that describe the resource.

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

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

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

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

setDroppedAttributesCount()

dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.

public setDroppedAttributesCount(int $var) : $this

Generated from protobuf field uint32 dropped_attributes_count = 2;

Parameters
$var : int
Return values
$this

        
On this page

Search results