function Span::setStatus
Same name in this branch
- 11.1.x vendor/open-telemetry/sdk/Trace/Span.php \OpenTelemetry\SDK\Trace\Span::setStatus()
An optional final status for this span. Semantically when Status isn't set, it means span's status code is unset, i.e. assume STATUS_CODE_UNSET (code = 0).
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.Status status = 15;</code>
Parameters
\Opentelemetry\Proto\Trace\V1\Status $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ Span.php, line 811
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 setStatus($var) {
GPBUtil::checkMessage($var, \Opentelemetry\Proto\Trace\V1\Status::class);
$this->status = $var;
return $this;
}