Span_Link constructor

Span_Link({
  1. List<int>? traceId,
  2. List<int>? spanId,
  3. String? traceState,
  4. Iterable<KeyValue>? attributes,
  5. int? droppedAttributesCount,
  6. int? flags,
})

Implementation

factory Span_Link({
  $core.List<$core.int>? traceId,
  $core.List<$core.int>? spanId,
  $core.String? traceState,
  $core.Iterable<$1.KeyValue>? attributes,
  $core.int? droppedAttributesCount,
  $core.int? flags,
}) {
  final $result = create();
  if (traceId != null) {
    $result.traceId = traceId;
  }
  if (spanId != null) {
    $result.spanId = spanId;
  }
  if (traceState != null) {
    $result.traceState = traceState;
  }
  if (attributes != null) {
    $result.attributes.addAll(attributes);
  }
  if (droppedAttributesCount != null) {
    $result.droppedAttributesCount = droppedAttributesCount;
  }
  if (flags != null) {
    $result.flags = flags;
  }
  return $result;
}