function Span::getTraceId
A unique identifier for a trace. All spans from the same trace share the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes OR of length other than 16 bytes is considered invalid (empty string in OTLP/JSON is zero-length and thus is also invalid). This field is required.
Generated from protobuf field <code>bytes trace_id = 1;</code>
Return value
string
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ Span.php, line 287
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 getTraceId() {
return $this->trace_id;
}