function Link::setTraceId
A unique identifier of a trace that this linked span is part of. The ID is a 16-byte array.
Generated from protobuf field <code>bytes trace_id = 1;</code>
Parameters
string $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ Span/ Link.php, line 133
Class
- Link
- A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler…
Namespace
Opentelemetry\Proto\Trace\V1\SpanCode
public function setTraceId($var) {
GPBUtil::checkString($var, False);
$this->trace_id = $var;
return $this;
}