From a8d986b3ced9985caad8c7b7afc0145ac2b12d10 Mon Sep 17 00:00:00 2001 From: Martin Haintz Date: Wed, 7 Aug 2024 12:24:38 +0200 Subject: [PATCH 1/2] add ignoreRoutes for SentryNavigatorObserver in sentry-dart --- .../integrations/routing-instrumentation.mdx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/platforms/flutter/integrations/routing-instrumentation.mdx b/docs/platforms/flutter/integrations/routing-instrumentation.mdx index 3c6da6530d29c..f3c36cf97e71b 100644 --- a/docs/platforms/flutter/integrations/routing-instrumentation.mdx +++ b/docs/platforms/flutter/integrations/routing-instrumentation.mdx @@ -109,8 +109,6 @@ There are two ways to set up TTID: The default setup is enabled automatically, but only provides an approximation of TTID. To set a more accurate TTID, manually wrap the desired widget with `SentryDisplayWidget`, as shown below: - - ```dart import 'package:sentry_flutter/sentry_flutter.dart'; @@ -261,6 +259,20 @@ SentryNavigatorObserver( ) ``` +### Ignore Routes + +Set `ignoreRoutes` if you want routes to be ignored and not pushed to Sentry servers. +Empty by default. + +```dart +import 'package:sentry_flutter/sentry_flutter.dart'; + +/// Ignore matching routes +SentryNavigatorObserver( + ignoreRoutes: ["/ignoreThisRoute", "/my/ignored/route"], +) +``` + ### Override Transaction Name Set `setRouteNameAsTransaction` to `true` to override the transaction name with the route name. From 4f3f05753afaef8e08fe8ba0fb7552cd3a4cdf69 Mon Sep 17 00:00:00 2001 From: Martin Haintz Date: Tue, 13 Aug 2024 13:26:45 +0200 Subject: [PATCH 2/2] Update docs/platforms/flutter/integrations/routing-instrumentation.mdx Co-authored-by: Giancarlo Buenaflor --- docs/platforms/flutter/integrations/routing-instrumentation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/flutter/integrations/routing-instrumentation.mdx b/docs/platforms/flutter/integrations/routing-instrumentation.mdx index f3c36cf97e71b..c8509722d9c91 100644 --- a/docs/platforms/flutter/integrations/routing-instrumentation.mdx +++ b/docs/platforms/flutter/integrations/routing-instrumentation.mdx @@ -261,7 +261,7 @@ SentryNavigatorObserver( ### Ignore Routes -Set `ignoreRoutes` if you want routes to be ignored and not pushed to Sentry servers. +Set `ignoreRoutes` if you want routes to be ignored and not processed by the navigation observer. Empty by default. ```dart