function Status::setCode
The status code.
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.Status.StatusCode code = 3;</code>
Parameters
int $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ Status.php, line 93
Class
- Status
- The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
Namespace
Opentelemetry\Proto\Trace\V1Code
public function setCode($var) {
GPBUtil::checkEnum($var, \Opentelemetry\Proto\Trace\V1\Status\StatusCode::class);
$this->code = $var;
return $this;
}