TracesData
extends Message
in package
TracesData represents the traces data that can be stored in a persistent storage, OR can be embedded by other protocols that transfer OTLP traces 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.trace.v1.TracesData
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 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 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 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
RepeatedFieldsetResourceSpans()
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 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