Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
respond to feedback
  • Loading branch information
PeloWriter committed Mar 4, 2021
commit 7577c939491db4a43304c163dbfd0a3b34a87ed0
15 changes: 1 addition & 14 deletions src/includes/capture-error/flutter.mdx
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
You can capture any exception object that you caught:

```dart
import 'package:sentry/sentry.dart';

try {
aMethodThatMightFail();
} catch (exception, stackTrace) {
await Sentry.captureException(
exception,
stackTrace: stackTrace,
);
}
```
<PlatformContent includePath="capture-error/dart.mdx" />

## Tips for Catching Errors

Expand Down
2 changes: 0 additions & 2 deletions src/includes/configuration/decluttering/android.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
### Decluttering Sentry

When used together with one of the logging framework integrations, the Android SDK captures all error logs as events. If you see a particular kind of error very often that has a `logger` tag, you can ignore that particular logger entirely. For more information see our <Link to="/platforms/android/integrations/timber/">Timber</Link> integration.
2 changes: 0 additions & 2 deletions src/includes/configuration/decluttering/java.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
### Decluttering Sentry

When used together with one of the logging framework integrations, the Java SDK captures all error logs as events. If you see a particular kind of error very often that has a `logger` tag, you can ignore that particular logger entirely. For more information see our <Link to="/platforms/java/guides/logback/">Logback</Link> or <Link to="/platforms/java/guides/log4j2/">Log4j 2.x</Link> integration.
2 changes: 0 additions & 2 deletions src/includes/configuration/decluttering/javascript.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
### Decluttering Sentry

You can construct an allowed list of domains which might raise acceptable exceptions. For example, if your scripts are loaded from `cdn.example.com` and your site is `example.com`, you can set `allowUrls` to:

```javascript
Expand Down
2 changes: 0 additions & 2 deletions src/includes/configuration/decluttering/python.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
### Decluttering Sentry

By default the Python SDK captures all error logs as events. If you see a particular kind of error very often that has a `logger` tag, you can ignore that particular logger entirely. For more information see our <Link to="/platforms/python/guides/logging/">logging integration</Link>.
6 changes: 0 additions & 6 deletions src/includes/getting-started-config/flutter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,4 @@ Future<void> main() async {
}
```

<Note>

Use the `SentryFlutter.init(...)` instead of `Sentry.init(...)` as it adds the Flutter integrations on top of the Dart SDK.

</Note>

You can configure the `SENTRY_DSN`, `SENTRY_RELEASE`, `SENTRY_DIST` and `SENTRY_ENVIRONMENT` via the Dart environment variables passing the `--dart-define` flag to the compiler as noted in the code sample.
2 changes: 0 additions & 2 deletions src/includes/getting-started-install/flutter.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Get the SDK from [pub.dev](https://pub.dev/packages/sentry_flutter) by adding the following to your `pubspec.yaml`:

```yml {filename:pubspec.yaml}
dependencies:
sentry_flutter: ^4.0.4
Expand Down
8 changes: 5 additions & 3 deletions src/includes/getting-started-primer/flutter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Features:
- ObjC, Swift, and C for iOS
- Offline storage of events
- Events [enriched](/platforms/flutter/enriching-events/context/) with device data
- Breadcrumbs automatically captured via the Native SDKs.
- [Automatic Breadcrumbs for Android](/platforms/android/enriching-events/breadcrumbs/#automatic-breadcrumbs)
- [Automatic Breadcrumbs for iOS](/platforms/apple/usage/#sentryautobreadcrumbtrackingintegration)
- Breadcrumbs automatically captured:
- by the [Flutter SDK](/platforms/flutter/enriching-events/breadcrumbs/#automatic-breadcrumbs)
- via the Native SDKs [Automatic Breadcrumbs for Android](/platforms/android/enriching-events/breadcrumbs/#automatic-breadcrumbs) and [Automatic Breadcrumbs for iOS](/platforms/apple/usage/#sentryautobreadcrumbtrackingintegration)
- as well as `http` with the [Dart SDK](/platforms/dart/)
- [Release Health](/product/releases/health/) tracks crash free users and sessions
- Limited support for Flutter Web
- Under the hood the SDK relies on the [Dart SDK](/platforms/dart/); the minimum required version is `2.8.0` and Flutter SDK version is `1.17.0`.
7 changes: 7 additions & 0 deletions src/platforms/common/configuration/filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,17 @@ In this example, the fingerprint is forced to a common value if an exception of

: For breadcrumbs created from HTTP requests done via the legacy `XMLHttpRequest` API. This holds the original xhr object.

</PlatformSection>

<PlatformSection supported={["android", "javascript", "java", "python"]} >

### Decluttering Sentry

<PlatformContent includePath="configuration/decluttering" />

</PlatformSection>


<PlatformSection supported={["node", "javascript", "python", "php", "dotnet", "java", "ruby", "go", "react-native", "android", "dotnet"]} notSupported={["javascript.cordova", "flutter"]}>

## Using Sampling to Filter Transaction Events
Expand Down
8 changes: 4 additions & 4 deletions src/platforms/common/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ will be sent. This is a "contains" match to the entire file URL. As a result, if

</ConfigKey>

<ConfigKey name="auto-session-tracking" supported={["javascript"]}>
<ConfigKey name="auto-session-tracking" supported={["javascript", "flutter"]} >

When set to `true`, the SDK will send session events to Sentry. This is supported in all browser SDKs, emitting one session per pageload and page navigation to Sentry.

Expand Down Expand Up @@ -203,7 +203,7 @@ Sentry SDKs normalize any contextual data to a given depth. Any keys containing

</ConfigKey>

<PlatformSection supported={["javascript", "python", "node"]}>
<PlatformSection supported={["javascript", "python", "node", "flutter"]}>

## Integration Configuration

Expand Down Expand Up @@ -236,13 +236,13 @@ The callback typically gets a second argument (called a "hint") which contains t

</ConfigKey>

<PlatformSection supported={["javascript", "java", "python", "node", "php", "dotnet"]}>
<PlatformSection supported={["javascript", "java", "python", "node", "php", "dotnet", "flutter"]}>

## Transport Options

Transports are used to send events to Sentry. Transports can be customized to some degree to better support highly specific deployments.

<ConfigKey name="transport" supported={["javascript", "php", "python", "java", "dotnet"]}>
<ConfigKey name="transport" supported={["javascript", "php", "python", "java", "dotnet", "flutter"]}>

Switches out the transport used to send events. How this works depends on the SDK. It can, for instance, be used to capture events for unit-testing or to send it through some more complex setup that requires proxy authentication.

Expand Down
1 change: 1 addition & 0 deletions src/platforms/common/enriching-events/scopes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ notSupported:
- php
- php.laravel
- php.symfony
- flutter
---

When an event is captured and sent to Sentry, SDKs will merge that event data with extra
Expand Down