SentryTraceContext constructor

SentryTraceContext({
  1. SentryId? traceId,
  2. SpanId? spanId,
  3. SpanId? parentSpanId,
  4. bool? sampled,
  5. required String operation,
  6. String? description,
  7. SpanStatus? status,
  8. String? origin,
  9. Map<String, dynamic>? unknown,
  10. SentryId? replayId,
  11. Map<String, dynamic>? data,
})

Implementation

SentryTraceContext({
  SentryId? traceId,
  SpanId? spanId,
  this.parentSpanId,
  this.sampled,
  required this.operation,
  this.description,
  this.status,
  this.origin,
  this.unknown,
  this.replayId,
  this.data,
})  : traceId = traceId ?? SentryId.newId(),
      spanId = spanId ?? SpanId.newId();