function InstrumentationLibraryMetrics::setMetrics
A list of metrics that originate from an instrumentation library.
Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;</code>
Parameters
\Opentelemetry\Proto\Metrics\V1\Metric[]|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ InstrumentationLibraryMetrics.php, line 121
Class
- InstrumentationLibraryMetrics
- A collection of Metrics produced by an InstrumentationLibrary. InstrumentationLibraryMetrics is wire-compatible with ScopeMetrics for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022.
Namespace
Opentelemetry\Proto\Metrics\V1Code
public function setMetrics($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Metrics\V1\Metric::class);
$this->metrics = $arr;
return $this;
}