ResourceSpans
extends Message
in package
A collection of ScopeSpans from a Resource.
Generated from protobuf message opentelemetry.proto.trace.v1.ResourceSpans
Table of Contents
Properties
- $resource : mixed
- The resource for the spans in this message.
- $schema_url : mixed
- The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_spans" field which have their own schema_url field.
- $scope_spans : mixed
- A list of ScopeSpans that originate from a resource.
Methods
- __construct() : mixed
- Constructor.
- clearResource() : mixed
- getResource() : Resource|null
- The resource for the spans in this message.
- getSchemaUrl() : string
- The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_spans" field which have their own schema_url field.
- getScopeSpans() : RepeatedField
- A list of ScopeSpans that originate from a resource.
- hasResource() : mixed
- setResource() : $this
- The resource for the spans in this message.
- setSchemaUrl() : $this
- The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_spans" field which have their own schema_url field.
- setScopeSpans() : $this
- A list of ScopeSpans that originate from a resource.
Properties
$resource
The resource for the spans in this message.
protected
mixed
$resource
= null
If this field is not set then no resource info is known.
Generated from protobuf field .opentelemetry.proto.resource.v1.Resource resource = 1;
$schema_url
The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_spans" field which have their own schema_url field.
protected
mixed
$schema_url
= ''
Generated from protobuf field string schema_url = 3;
$scope_spans
A list of ScopeSpans that originate from a resource.
private
mixed
$scope_spans
Generated from protobuf field repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
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\Resource\V1\Resource $resource The resource for the spans in this message. If this field is not set then no resource info is known. @type \Opentelemetry\Proto\Trace\V1\ScopeSpans[]|\Google\Protobuf\Internal\RepeatedField $scope_spans A list of ScopeSpans that originate from a resource. @type string $schema_url The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_spans" field which have their own schema_url field.
}
clearResource()
public
clearResource() : mixed
getResource()
The resource for the spans in this message.
public
getResource() : Resource|null
If this field is not set then no resource info is known.
Generated from protobuf field .opentelemetry.proto.resource.v1.Resource resource = 1;
Return values
Resource|nullgetSchemaUrl()
The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_spans" field which have their own schema_url field.
public
getSchemaUrl() : string
Generated from protobuf field string schema_url = 3;
Return values
stringgetScopeSpans()
A list of ScopeSpans that originate from a resource.
public
getScopeSpans() : RepeatedField
Generated from protobuf field repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
Return values
RepeatedFieldhasResource()
public
hasResource() : mixed
setResource()
The resource for the spans in this message.
public
setResource(Resource $var) : $this
If this field is not set then no resource info is known.
Generated from protobuf field .opentelemetry.proto.resource.v1.Resource resource = 1;
Parameters
- $var : Resource
Return values
$thissetSchemaUrl()
The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_spans" field which have their own schema_url field.
public
setSchemaUrl(string $var) : $this
Generated from protobuf field string schema_url = 3;
Parameters
- $var : string
Return values
$thissetScopeSpans()
A list of ScopeSpans that originate from a resource.
public
setScopeSpans(array<string|int, ScopeSpans>|RepeatedField $var) : $this
Generated from protobuf field repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
Parameters
- $var : array<string|int, ScopeSpans>|RepeatedField