OpenTelemetry PHP

ScopeMetrics extends Message
in package

A collection of Metrics produced by an Scope.

Generated from protobuf message opentelemetry.proto.metrics.v1.ScopeMetrics

Table of Contents

Properties

$schema_url  : mixed
The Schema URL, if known. This is the identifier of the Schema that the metric 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 metrics in the "metrics" field.
$scope  : mixed
The instrumentation scope information for the metrics in this message.
$metrics  : mixed
A list of metrics that originate from an instrumentation library.

Methods

__construct()  : mixed
Constructor.
clearScope()  : mixed
getMetrics()  : RepeatedField
A list of metrics that originate from an instrumentation library.
getSchemaUrl()  : string
The Schema URL, if known. This is the identifier of the Schema that the metric 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 metrics in the "metrics" field.
getScope()  : InstrumentationScope|null
The instrumentation scope information for the metrics in this message.
hasScope()  : mixed
setMetrics()  : $this
A list of metrics that originate from an instrumentation library.
setSchemaUrl()  : $this
The Schema URL, if known. This is the identifier of the Schema that the metric 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 metrics in the "metrics" field.
setScope()  : $this
The instrumentation scope information for the metrics in this message.

Properties

$schema_url

The Schema URL, if known. This is the identifier of the Schema that the metric 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 metrics in the "metrics" field.

protected mixed $schema_url = ''

Generated from protobuf field string schema_url = 3;

$scope

The instrumentation scope information for the metrics 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;

$metrics

A list of metrics that originate from an instrumentation library.

private mixed $metrics

Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.Metric metrics = 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 metrics in this message.
      Semantically when InstrumentationScope isn't set, it is equivalent with
      an empty instrumentation scope name (unknown).
@type \Opentelemetry\Proto\Metrics\V1\Metric[]|\Google\Protobuf\Internal\RepeatedField $metrics
      A list of metrics that originate from an instrumentation library.
@type string $schema_url
      The Schema URL, if known. This is the identifier of the Schema that the metric 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 metrics in the "metrics" field.

}

getMetrics()

A list of metrics that originate from an instrumentation library.

public getMetrics() : RepeatedField

Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;

Return values
RepeatedField

getSchemaUrl()

The Schema URL, if known. This is the identifier of the Schema that the metric 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 metrics in the "metrics" field.

public getSchemaUrl() : string

Generated from protobuf field string schema_url = 3;

Return values
string

getScope()

The instrumentation scope information for the metrics 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|null

setMetrics()

A list of metrics that originate from an instrumentation library.

public setMetrics(array<string|int, Metric>|RepeatedField $var) : $this

Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;

Parameters
$var : array<string|int, Metric>|RepeatedField
Return values
$this

setSchemaUrl()

The Schema URL, if known. This is the identifier of the Schema that the metric 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 metrics in the "metrics" field.

public setSchemaUrl(string $var) : $this

Generated from protobuf field string schema_url = 3;

Parameters
$var : string
Return values
$this

setScope()

The instrumentation scope information for the metrics 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
$this

        
On this page

Search results