spanId property

  1. @TagNumber.new(10)
List<int> get spanId

A unique identifier for a span within a trace, assigned when the span is created. The ID is an 8-byte array. An ID with all zeroes OR of length other than 8 bytes is considered invalid (empty string in OTLP/JSON is zero-length and thus is also invalid).

This field is optional. If the sender specifies a valid span_id then it SHOULD also specify a valid trace_id.

The receivers SHOULD assume that the log record is not associated with a span if any of the following is true:

  • the field is not present,
  • the field contains an invalid value.

Implementation

@$pb.TagNumber(10)
$core.List<$core.int> get spanId => $_getN(8);
  1. @TagNumber.new(10)
set spanId (List<int> v)

Implementation

@$pb.TagNumber(10)
set spanId($core.List<$core.int> v) {
  $_setBytes(8, v);
}