Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ignoreRoutes for SentryNavigatorObserver in sentry-dart #11018

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions docs/platforms/flutter/integrations/routing-instrumentation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -261,6 +259,20 @@ SentryNavigatorObserver(
)
```

### Ignore Routes

Set `ignoreRoutes` if you want routes to be ignored and not processed by the navigation observer.
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.
Expand Down
Loading