function ScopeSpans::setSpans
A list of Spans that originate from an instrumentation scope.
Generated from protobuf field <code>repeated .opentelemetry.proto.trace.v1.Span spans = 2;</code>
Parameters
\Opentelemetry\Proto\Trace\V1\Span[]|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ ScopeSpans.php, line 124
Class
- ScopeSpans
- A collection of Spans produced by an InstrumentationScope.
Namespace
Opentelemetry\Proto\Trace\V1Code
public function setSpans($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Trace\V1\Span::class);
$this->spans = $arr;
return $this;
}