Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Span.php

function Span::setStatus

Same name in this branch
  1. 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\V1

Code

public function setStatus($var) {
    GPBUtil::checkMessage($var, \Opentelemetry\Proto\Trace\V1\Status::class);
    $this->status = $var;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal