Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ScopeMetrics.php

function ScopeMetrics::__construct

Constructor.

Parameters

array $data {: 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. }

Overrides Message::__construct

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/V1/ScopeMetrics.php, line 61

Class

ScopeMetrics
A collection of Metrics produced by an Scope.

Namespace

Opentelemetry\Proto\Metrics\V1

Code

public function __construct($data = NULL) {
    \GPBMetadata\Opentelemetry\Proto\Metrics\V1\Metrics::initOnce();
    parent::__construct($data);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal