function ScopeSpans::setScope
The instrumentation scope information for the spans 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/ Trace/ V1/ ScopeSpans.php, line 98
Class
- ScopeSpans
- A collection of Spans produced by an InstrumentationScope.
Namespace
Opentelemetry\Proto\Trace\V1Code
public function setScope($var) {
GPBUtil::checkMessage($var, \Opentelemetry\Proto\Common\V1\InstrumentationScope::class);
$this->scope = $var;
return $this;
}