Span constructor

const Span({
  1. required String spanId,
  2. required String name,
  3. required DateTime startTime,
  4. DateTime? endTime,
  5. Duration duration = Duration.zero,
  6. String? parentSpanId,
  7. String? traceId,
  8. Map<String, String> attributes = const {},
})

Implementation

const Span({
  required this.spanId,
  required this.name,
  required this.startTime,
  this.endTime,
  this.duration = Duration.zero,
  this.parentSpanId,
  this.traceId,
  this.attributes = const {},
});