ScopeSpans
extends Message
in package
A collection of Spans produced by an InstrumentationScope.
Generated from protobuf message opentelemetry.proto.trace.v1.ScopeSpans
Table of Contents
Properties
- $schema_url : mixed
- The Schema URL, if known. This is the identifier of the Schema that the span 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 all spans and span events in the "spans" field.
- $scope : mixed
- The instrumentation scope information for the spans in this message.
- $spans : mixed
- A list of Spans that originate from an instrumentation scope.
Methods
- __construct() : mixed
- Constructor.
- clearScope() : mixed
- getSchemaUrl() : string
- The Schema URL, if known. This is the identifier of the Schema that the span 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 all spans and span events in the "spans" field.
- getScope() : InstrumentationScope|null
- The instrumentation scope information for the spans in this message.
- getSpans() : RepeatedField
- A list of Spans that originate from an instrumentation scope.
- hasScope() : mixed
- setSchemaUrl() : $this
- The Schema URL, if known. This is the identifier of the Schema that the span 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 all spans and span events in the "spans" field.
- setScope() : $this
- The instrumentation scope information for the spans in this message.
- setSpans() : $this
- A list of Spans that originate from an instrumentation scope.
Properties
$schema_url
The Schema URL, if known. This is the identifier of the Schema that the span 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 all spans and span events in the "spans" field.
protected
mixed
$schema_url
= ''
Generated from protobuf field string schema_url = 3;
$scope
The instrumentation scope information for the spans in this message.
protected
mixed
$scope
= null
Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
$spans
A list of Spans that originate from an instrumentation scope.
private
mixed
$spans
Generated from protobuf field repeated .opentelemetry.proto.trace.v1.Span 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\Common\V1\InstrumentationScope $scope The instrumentation scope information for the spans in this message. Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown). @type \Opentelemetry\Proto\Trace\V1\Span[]|\Google\Protobuf\Internal\RepeatedField $spans A list of Spans that originate from an instrumentation scope. @type string $schema_url The Schema URL, if known. This is the identifier of the Schema that the span 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 all spans and span events in the "spans" field.
}
clearScope()
public
clearScope() : mixed
getSchemaUrl()
The Schema URL, if known. This is the identifier of the Schema that the span 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 all spans and span events in the "spans" field.
public
getSchemaUrl() : string
Generated from protobuf field string schema_url = 3;
Return values
stringgetScope()
The instrumentation scope information for the spans in this message.
public
getScope() : InstrumentationScope|null
Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
Return values
InstrumentationScope|nullgetSpans()
A list of Spans that originate from an instrumentation scope.
public
getSpans() : RepeatedField
Generated from protobuf field repeated .opentelemetry.proto.trace.v1.Span spans = 2;
Return values
RepeatedFieldhasScope()
public
hasScope() : mixed
setSchemaUrl()
The Schema URL, if known. This is the identifier of the Schema that the span 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 all spans and span events in the "spans" field.
public
setSchemaUrl(string $var) : $this
Generated from protobuf field string schema_url = 3;
Parameters
- $var : string
Return values
$thissetScope()
The instrumentation scope information for the spans in this message.
public
setScope(InstrumentationScope $var) : $this
Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
Parameters
- $var : InstrumentationScope
Return values
$thissetSpans()
A list of Spans that originate from an instrumentation scope.
public
setSpans(array<string|int, Span>|RepeatedField $var) : $this
Generated from protobuf field repeated .opentelemetry.proto.trace.v1.Span spans = 2;
Parameters
- $var : array<string|int, Span>|RepeatedField