startTransaction method

  1. @override
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,
})
override

Creates a Transaction and returns the instance.

Implementation

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