OpenTelemetry PHP

LogsData extends Message
in package

LogsData represents the logs data that can be stored in a persistent storage, OR can be embedded by other protocols that transfer OTLP logs 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.logs.v1.LogsData

Table of Contents

Properties

$resource_logs  : mixed
An array of ResourceLogs.

Methods

__construct()  : mixed
Constructor.
getResourceLogs()  : RepeatedField
An array of ResourceLogs.
setResourceLogs()  : $this
An array of ResourceLogs.

Properties

$resource_logs

An array of ResourceLogs.

private mixed $resource_logs

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.logs.v1.ResourceLogs resource_logs = 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\Logs\V1\ResourceLogs[]|\Google\Protobuf\Internal\RepeatedField $resource_logs
      An array of ResourceLogs.
      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.

}

getResourceLogs()

An array of ResourceLogs.

public getResourceLogs() : 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.logs.v1.ResourceLogs resource_logs = 1;

Return values
RepeatedField

setResourceLogs()

An array of ResourceLogs.

public setResourceLogs(array<string|int, ResourceLogs>|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.logs.v1.ResourceLogs resource_logs = 1;

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

        
On this page

Search results