OpenTelemetry PHP

ProfilesData extends Message
in package

ProfilesData represents the profiles data that can be stored in persistent storage, OR can be embedded by other protocols that transfer OTLP profiles data but do not implement the OTLP protocol.

The main difference between this message and collector protocol is that in this message there will not be any "control" or "metadata" specific to OTLP protocol. When new fields are added into this message, the OTLP request MUST be updated as well.

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

Table of Contents

Properties

$resource_profiles  : mixed
An array of ResourceProfiles.

Methods

__construct()  : mixed
Constructor.
getResourceProfiles()  : RepeatedField
An array of ResourceProfiles.
setResourceProfiles()  : $this
An array of ResourceProfiles.

Properties

$resource_profiles

An array of ResourceProfiles.

private mixed $resource_profiles

For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.

Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 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\Profiles\V1development\ResourceProfiles[]|\Google\Protobuf\Internal\RepeatedField $resource_profiles
      An array of ResourceProfiles.
      For data coming from a single resource this array will typically contain
      one element. Intermediary nodes that receive data from multiple origins
      typically batch the data before forwarding further and in that case this
      array will contain multiple elements.

}

getResourceProfiles()

An array of ResourceProfiles.

public getResourceProfiles() : RepeatedField

For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.

Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;

Return values
RepeatedField

setResourceProfiles()

An array of ResourceProfiles.

public setResourceProfiles(array<string|int, ResourceProfiles>|RepeatedField $var) : $this

For data coming from a single resource this array will typically contain one element. Intermediary nodes that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.

Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;

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

        
On this page

Search results