startTransactionWithContext static method

ISentrySpan startTransactionWithContext(
  1. SentryTransactionContext transactionContext, {
  2. Map<String, dynamic>? customSamplingContext,
  3. DateTime? startTimestamp,
  4. bool? bindToScope,
  5. bool? waitForChildren,
  6. Duration? autoFinishAfter,
  7. bool? trimEnd,
  8. OnTransactionFinish? onFinish,
})

Creates a Transaction and returns the instance.

Implementation

static ISentrySpan startTransactionWithContext(
  SentryTransactionContext transactionContext, {
  Map<String, dynamic>? customSamplingContext,
  DateTime? startTimestamp,
  bool? bindToScope,
  bool? waitForChildren,
  Duration? autoFinishAfter,
  bool? trimEnd,
  OnTransactionFinish? onFinish,
}) =>
    _hub.startTransactionWithContext(
      transactionContext,
      customSamplingContext: customSamplingContext,
      startTimestamp: startTimestamp,
      bindToScope: bindToScope,
      waitForChildren: waitForChildren,
      autoFinishAfter: autoFinishAfter,
      trimEnd: trimEnd,
      onFinish: onFinish,
    );