function Span::setLinks
links is a collection of Links, which are references from this span to a span in the same or different trace.
Generated from protobuf field <code>repeated .opentelemetry.proto.trace.v1.Span.Link links = 13;</code>
Parameters
\Opentelemetry\Proto\Trace\V1\Span\Link[]|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ Span.php, line 745
Class
- Span
- A Span represents a single operation performed by a single component of the system. The next available field id is 17.
Namespace
Opentelemetry\Proto\Trace\V1Code
public function setLinks($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Trace\V1\Span\Link::class);
$this->links = $arr;
return $this;
}