@@ -3,7 +3,6 @@ import 'dart:collection';
33
44import 'package:meta/meta.dart' ;
55
6- import 'noop_sentry_span.dart' ;
76import 'protocol.dart' ;
87import 'scope.dart' ;
98import 'sentry_client.dart' ;
@@ -340,6 +339,8 @@ class Hub {
340339 String operation, {
341340 String ? description,
342341 bool ? bindToScope,
342+ bool ? waitForChildren,
343+ Duration ? autoFinishAfter,
343344 Map <String , dynamic >? customSamplingContext,
344345 }) =>
345346 startTransactionWithContext (
@@ -349,6 +350,8 @@ class Hub {
349350 description: description,
350351 ),
351352 bindToScope: bindToScope,
353+ waitForChildren: waitForChildren,
354+ autoFinishAfter: autoFinishAfter,
352355 customSamplingContext: customSamplingContext,
353356 );
354357
@@ -357,6 +360,8 @@ class Hub {
357360 SentryTransactionContext transactionContext, {
358361 Map <String , dynamic >? customSamplingContext,
359362 bool ? bindToScope,
363+ bool ? waitForChildren,
364+ Duration ? autoFinishAfter,
360365 }) {
361366 if (! _isEnabled) {
362367 _options.logger (
@@ -380,8 +385,12 @@ class Hub {
380385 transactionContext = transactionContext.copyWith (sampled: sampled);
381386 }
382387
383- final tracer = SentryTracer (transactionContext, this );
384-
388+ final tracer = SentryTracer (
389+ transactionContext,
390+ this ,
391+ waitForChildren: waitForChildren ?? false ,
392+ autoFinishAfter: autoFinishAfter,
393+ );
385394 if (bindToScope ?? false ) {
386395 item.scope.span = tracer;
387396 }
0 commit comments