startTransaction method

ISentrySpan startTransaction(
  1. String name,
  2. String operation, {
  3. String? description,
  4. DateTime? startTimestamp,
  5. bool? bindToScope,
  6. bool? waitForChildren,
  7. Duration? autoFinishAfter,
  8. bool? trimEnd,
  9. OnTransactionFinish? onFinish,
  10. Map<String, dynamic>? customSamplingContext,
})

Creates a Transaction and returns the instance.

Implementation

ISentrySpan startTransaction(
  String name,
  String operation, {
  String? description,
  DateTime? startTimestamp,
  bool? bindToScope,
  bool? waitForChildren,
  Duration? autoFinishAfter,
  bool? trimEnd,
  OnTransactionFinish? onFinish,
  Map<String, dynamic>? customSamplingContext,
}) =>
    startTransactionWithContext(
      SentryTransactionContext(
        name,
        operation,
        description: description,
      ),
      startTimestamp: startTimestamp,
      bindToScope: bindToScope,
      waitForChildren: waitForChildren,
      autoFinishAfter: autoFinishAfter,
      trimEnd: trimEnd,
      onFinish: onFinish,
      customSamplingContext: customSamplingContext,
    );