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,
})

Implementation

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