function ScopeMetrics::setScope
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).
Generated from protobuf field <code>.opentelemetry.proto.common.v1.InstrumentationScope scope = 1;</code>
Parameters
\Opentelemetry\Proto\Common\V1\InstrumentationScope $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ ScopeMetrics.php, line 98
Class
- ScopeMetrics
- A collection of Metrics produced by an Scope.
Namespace
Opentelemetry\Proto\Metrics\V1Code
public function setScope($var) {
GPBUtil::checkMessage($var, \Opentelemetry\Proto\Common\V1\InstrumentationScope::class);
$this->scope = $var;
return $this;
}