InstrumentationLibrarySpans
extends Message
in package
A collection of Spans produced by an InstrumentationLibrary.
InstrumentationLibrarySpans is wire-compatible with ScopeSpans for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022.
Generated from protobuf message opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
Table of Contents
Properties
- $instrumentation_library : mixed
- The instrumentation library information for the spans in this message.
- $schema_url : mixed
- This schema_url applies to all spans and span events in the "spans" field.
- $spans : mixed
- A list of Spans that originate from an instrumentation library.
Methods
- __construct() : mixed
- Constructor.
- clearInstrumentationLibrary() : mixed
- getInstrumentationLibrary() : InstrumentationLibrary|null
- The instrumentation library information for the spans in this message.
- getSchemaUrl() : string
- This schema_url applies to all spans and span events in the "spans" field.
- getSpans() : RepeatedField
- A list of Spans that originate from an instrumentation library.
- hasInstrumentationLibrary() : mixed
- setInstrumentationLibrary() : $this
- The instrumentation library information for the spans in this message.
- setSchemaUrl() : $this
- This schema_url applies to all spans and span events in the "spans" field.
- setSpans() : $this
- A list of Spans that originate from an instrumentation library.
Properties
$instrumentation_library
The instrumentation library information for the spans in this message.
protected
mixed
$instrumentation_library
= null
Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
$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;
$spans
A list of Spans that originate from an instrumentation library.
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\InstrumentationLibrary $instrumentation_library The instrumentation library information for the spans in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown). @type \Opentelemetry\Proto\Trace\V1\Span[]|\Google\Protobuf\Internal\RepeatedField $spans A list of Spans that originate from an instrumentation library. @type string $schema_url This schema_url applies to all spans and span events in the "spans" field.
}
clearInstrumentationLibrary()
public
clearInstrumentationLibrary() : mixed
getInstrumentationLibrary()
The instrumentation library information for the spans in this message.
public
getInstrumentationLibrary() : InstrumentationLibrary|null
Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
Return values
InstrumentationLibrary|nullgetSchemaUrl()
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
stringgetSpans()
A list of Spans that originate from an instrumentation library.
public
getSpans() : RepeatedField
Generated from protobuf field repeated .opentelemetry.proto.trace.v1.Span spans = 2;
Return values
RepeatedFieldhasInstrumentationLibrary()
public
hasInstrumentationLibrary() : mixed
setInstrumentationLibrary()
The instrumentation library information for the spans in this message.
public
setInstrumentationLibrary(InstrumentationLibrary $var) : $this
Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
Parameters
- $var : InstrumentationLibrary
Return values
$thissetSchemaUrl()
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
$thissetSpans()
A list of Spans that originate from an instrumentation library.
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