function Exemplar::setSpanId
(Optional) Span ID of the exemplar trace. span_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
Generated from protobuf field <code>bytes span_id = 4;</code>
Parameters
string $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ Exemplar.php, line 222
Class
- Exemplar
- A representation of an exemplar, which is a sample input measurement. Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded.
Namespace
Opentelemetry\Proto\Metrics\V1Code
public function setSpanId($var) {
GPBUtil::checkString($var, False);
$this->span_id = $var;
return $this;
}