InstrumentationScope
extends Message
in package
InstrumentationScope is a message representing the instrumentation scope information such as the fully qualified name and version.
Generated from protobuf message opentelemetry.proto.common.v1.InstrumentationScope
Table of Contents
Properties
- $dropped_attributes_count : mixed
- Generated from protobuf field <code>uint32 dropped_attributes_count = 4;</code>
- $name : mixed
- An empty instrumentation scope name means the name is unknown.
- $version : mixed
- Generated from protobuf field <code>string version = 2;</code>
- $attributes : mixed
- Additional attributes that describe the scope. [Optional].
Methods
- __construct() : mixed
- Constructor.
- getAttributes() : RepeatedField
- Additional attributes that describe the scope. [Optional].
- getDroppedAttributesCount() : int
- Generated from protobuf field <code>uint32 dropped_attributes_count = 4;</code>
- getName() : string
- An empty instrumentation scope name means the name is unknown.
- getVersion() : string
- Generated from protobuf field <code>string version = 2;</code>
- setAttributes() : $this
- Additional attributes that describe the scope. [Optional].
- setDroppedAttributesCount() : $this
- Generated from protobuf field <code>uint32 dropped_attributes_count = 4;</code>
- setName() : $this
- An empty instrumentation scope name means the name is unknown.
- setVersion() : $this
- Generated from protobuf field <code>string version = 2;</code>
Properties
$dropped_attributes_count
Generated from protobuf field <code>uint32 dropped_attributes_count = 4;</code>
protected
mixed
$dropped_attributes_count
= 0
$name
An empty instrumentation scope name means the name is unknown.
protected
mixed
$name
= ''
Generated from protobuf field string name = 1;
$version
Generated from protobuf field <code>string version = 2;</code>
protected
mixed
$version
= ''
$attributes
Additional attributes that describe the scope. [Optional].
private
mixed
$attributes
Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
Generated from protobuf field repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
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 string $name An empty instrumentation scope name means the name is unknown. @type string $version @type \Opentelemetry\Proto\Common\V1\KeyValue[]|\Google\Protobuf\Internal\RepeatedField $attributes Additional attributes that describe the scope. [Optional]. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). @type int $dropped_attributes_count
}
getAttributes()
Additional attributes that describe the scope. [Optional].
public
getAttributes() : RepeatedField
Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
Generated from protobuf field repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
Return values
RepeatedFieldgetDroppedAttributesCount()
Generated from protobuf field <code>uint32 dropped_attributes_count = 4;</code>
public
getDroppedAttributesCount() : int
Return values
intgetName()
An empty instrumentation scope name means the name is unknown.
public
getName() : string
Generated from protobuf field string name = 1;
Return values
stringgetVersion()
Generated from protobuf field <code>string version = 2;</code>
public
getVersion() : string
Return values
stringsetAttributes()
Additional attributes that describe the scope. [Optional].
public
setAttributes(array<string|int, KeyValue>|RepeatedField $var) : $this
Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
Generated from protobuf field repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
Parameters
- $var : array<string|int, KeyValue>|RepeatedField
Return values
$thissetDroppedAttributesCount()
Generated from protobuf field <code>uint32 dropped_attributes_count = 4;</code>
public
setDroppedAttributesCount(int $var) : $this
Parameters
- $var : int
Return values
$thissetName()
An empty instrumentation scope name means the name is unknown.
public
setName(string $var) : $this
Generated from protobuf field string name = 1;
Parameters
- $var : string
Return values
$thissetVersion()
Generated from protobuf field <code>string version = 2;</code>
public
setVersion(string $var) : $this
Parameters
- $var : string