OpenTelemetry PHP

ExportTraceServiceRequest extends Message
in package

Generated from protobuf message <code>opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest</code>

Table of Contents

Properties

$resource_spans  : mixed
An array of ResourceSpans.

Methods

__construct()  : mixed
Constructor.
getResourceSpans()  : RepeatedField
An array of ResourceSpans.
setResourceSpans()  : $this
An array of ResourceSpans.

Properties

$resource_spans

An array of ResourceSpans.

private mixed $resource_spans

For data coming from a single resource this array will typically contain one element. Intermediary nodes (such as OpenTelemetry Collector) 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.trace.v1.ResourceSpans resource_spans = 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\Trace\V1\ResourceSpans[]|\Google\Protobuf\Internal\RepeatedField $resource_spans
      An array of ResourceSpans.
      For data coming from a single resource this array will typically contain one
      element. Intermediary nodes (such as OpenTelemetry Collector) that receive
      data from multiple origins typically batch the data before forwarding further and
      in that case this array will contain multiple elements.

}

getResourceSpans()

An array of ResourceSpans.

public getResourceSpans() : RepeatedField

For data coming from a single resource this array will typically contain one element. Intermediary nodes (such as OpenTelemetry Collector) 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.trace.v1.ResourceSpans resource_spans = 1;

Return values
RepeatedField

setResourceSpans()

An array of ResourceSpans.

public setResourceSpans(array<string|int, ResourceSpans>|RepeatedField $var) : $this

For data coming from a single resource this array will typically contain one element. Intermediary nodes (such as OpenTelemetry Collector) 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.trace.v1.ResourceSpans resource_spans = 1;

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

        
On this page

Search results