From cd7b0428f97e6ecddb4252235bce8c831e2bb72a Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Tue, 14 Oct 2025 12:01:11 -0700 Subject: [PATCH 1/7] adding types and defaults to flutter --- .../guides/flutter/configuration/options.mdx | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/docs/platforms/dart/guides/flutter/configuration/options.mdx b/docs/platforms/dart/guides/flutter/configuration/options.mdx index b0076649decd0..305a116eafda2 100644 --- a/docs/platforms/dart/guides/flutter/configuration/options.mdx +++ b/docs/platforms/dart/guides/flutter/configuration/options.mdx @@ -22,13 +22,13 @@ Learn more about [DSN utilization](/product/sentry-basics/dsn-explainer/#dsn-uti - + Turns debug mode on or off. If debug is enabled SDK will attempt to print out useful debugging information if something goes wrong with sending the event. The default is `true` if your app runs in [debug mode](https://docs.flutter.dev/testing/build-modes#debug), otherwise it is `false`. It's generally not recommended to turn it on in production, though turning `debug` mode on will not cause any safety concerns. - + Enabling `debug` mode makes the SDK generate as much diagnostic data as possible. However, if you'd prefer to lower the verbosity of the Sentry SDK diagnostics logs, configure this option to set the appropriate level: @@ -40,13 +40,13 @@ Enabling `debug` mode makes the SDK generate as much diagnostic data as possible - + Sets the distribution of the application. Distributions are used to disambiguate build or deployment variants of the same release of an application. For example, the dist can be the build number of an Xcode build or the version code of an Android build. The dist has a max length of 64 characters. - + Sets the release. Some SDKs will try to automatically configure a release out of the box but it's a better idea to manually set it to guarantee that the release is in sync with your deploy integrations or source map uploads. Release names are strings, but some formats are detected by Sentry and might be rendered differently. Learn more about how to send release data so Sentry can tell you about regressions between releases and identify the potential source in [the releases documentation](/product/releases/) or the sandbox. @@ -54,7 +54,7 @@ By default the SDK will try to read this value from the `SENTRY_RELEASE` environ - + Sets the environment. This string is freeform and not set by default. A release can be associated with more than one environment to separate them in the UI (think `staging` vs `prod` or similar). @@ -62,25 +62,25 @@ By default the SDK will try to read this value from the `SENTRY_ENVIRONMENT` env - + Configures the sample rate for error events, in the range of `0.0` to `1.0`. The default is `1.0`, which means that 100% of error events will be sent. If set to `0.1`, only 10% of error events will be sent. Events are picked randomly. - + This variable controls the total amount of breadcrumbs that should be captured. This defaults to `100`, but you can set this to any number. However, you should be aware that Sentry has a [maximum payload size](https://develop.sentry.dev/sdk/data-model/envelopes/#size-limits) and any events exceeding that payload size will be dropped. - + The maximum number of [envelopes](https://develop.sentry.dev/sdk/data-model/envelopes/) to keep in cache. The SDKs use envelopes to send data, such as events, attachments, user feedback, and sessions to sentry.io. An envelope can contain multiple items, such as an event with a session and two attachments. Depending on the usage of the SDK, the size of an envelope can differ. If the number of envelopes in the local cache exceeds `max-cache-items`, the SDK deletes the oldest envelope and migrates the sessions to the next envelope to maintain the integrity of your release health stats. The default is `30`. - + When enabled, stack traces are automatically attached to all messages logged. Stack traces are always attached to exceptions; however, when this option is set, stack traces are also sent with messages. This option, for instance, means that stack traces appear next to all log messages. @@ -90,7 +90,7 @@ Grouping in Sentry is different for events with stack traces and without. As a r - + If this flag is enabled, certain personally identifiable information (PII) is added by active integrations. By default, no such data is sent. @@ -106,7 +106,7 @@ If you enable this option, be sure to manually remove what you don't want to sen - + This option can be used to supply a server name. When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server. @@ -114,13 +114,13 @@ Most SDKs will attempt to auto-discover this value. - + 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. In mobile SDKs, when the app goes to the background for longer than 30 seconds, sessions are ended. - + Configures whether stack trace frames are considered as in app frames by default. You can use this to essentially make `inAppIncludes` or `inAppExcludes` an allow or deny list. @@ -131,7 +131,7 @@ This value is used only if Sentry can not find the origin of the frame. - + A list of string prefixes of module names that belong to the app. This option takes precedence over `in-app-exclude`. @@ -139,7 +139,7 @@ Sentry differentiates stack frames that are directly related to your application - + A list of string prefixes of module names that do not belong to the app, but rather to third-party packages. Modules considered not part of the app will be hidden from stack traces by default. @@ -147,7 +147,7 @@ This option can be overridden using . - + Takes a screenshot of the application when an error happens and includes it as an attachment. Enable this option by setting to `true` and wrapping your root widget with `SentryWidget(child: MyApp())`. @@ -155,20 +155,20 @@ Learn more about enriching events with screenshots in our + The quality of the attached screenshot. It can be set to `full`, `high`, `medium` or `low`. - + Renders a JSON representation of the entire view hierarchy of the application when an error happens and includes it as an attachment. Learn more about enriching events with the view hierarchy in our View Hierarchy documentation. - + The idle time, measured in ms, to wait until a transaction will be automatically finished. The transaction will use the end timestamp of the last finished span as the endtime for the transaction. @@ -176,7 +176,7 @@ The default is `3000`. - + Set this boolean to `false` to disable sending of client reports. Client reports are a protocol feature that let clients send status reports about themselves to Sentry. They are currently mainly used to emit outcomes for events that were never sent. @@ -184,7 +184,7 @@ _(New in version 6.6.0)_ - + Once enabled, this feature automatically captures HTTP client errors, like bad response codes, as error events and reports them to Sentry. @@ -192,7 +192,7 @@ _(New in version 7.0.0)_ - + This parameter controls whether integrations should capture HTTP request bodies. It can be set to one of the following values: @@ -207,7 +207,7 @@ This parameter controls whether integrations should capture HTTP request bodies. For many platform SDKs integrations can be configured alongside it. On some platforms that happen as part of the `init()` call, in some others, different patterns apply. - + In some SDKs, the integrations are configured through this parameter on library initialization. For more information, please see our documentation for a specific integration. @@ -217,7 +217,7 @@ In some SDKs, the integrations are configured through this parameter on library These options can be used to hook the SDK in various ways to customize the reporting of events. - + This function is called with an SDK-specific message or error event object, and can return a modified event object, or `null` to skip reporting the event. This can be used, for instance, for manual PII stripping before sending. @@ -225,7 +225,7 @@ By the time is executed, all scope data - + This function is called with an SDK-specific breadcrumb object before the breadcrumb is added to the scope. When nothing is returned from the function, the breadcrumb is dropped. To pass the breadcrumb through, return the first argument, which contains the breadcrumb object. The callback typically gets a second argument (called a "hint") which contains the original object from which the breadcrumb was created to further customize what the breadcrumb should look like. @@ -236,7 +236,7 @@ The callback typically gets a second argument (called a "hint") which contains t Transports are used to send events to Sentry. Transports can be customized to some degree to better support highly specific deployments. - + 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. @@ -244,19 +244,19 @@ Switches out the transport used to send events. How this works depends on the SD ## Tracing Options - + A number between `0` and `1`, controlling the percentage chance a given transaction will be sent to Sentry. (`0` represents 0% while `1` represents 100%.) Applies equally to all transactions created in the app. Either this or must be defined to enable tracing. - + A function responsible for determining the percentage chance a given transaction will be sent to Sentry. It will automatically be passed information about the transaction and the context in which it's being created, and must return a number between `0` (0% chance of being sent) and `1` (100% chance of being sent). Can also be used for filtering transactions, by returning 0 for those that are unwanted. Either this or must be defined to enable tracing. - + An optional property that controls which downstream services receive tracing data, in the form of a `sentry-trace` and a `baggage` header attached to any outgoing HTTP requests. @@ -270,7 +270,7 @@ If is not provided, trace ## Experimental Features - + An optional property that configures which features are in experimental mode. This property is either an `Object Type` with properties or a key/value `TypedDict`, depending the language. Experimental features are still in-progress and may have bugs. We recognize the irony. @@ -278,7 +278,7 @@ An optional property that configures which features are in experimental mode. Th ## Hybrid SDK Options - + Set this boolean to `false` to disable the auto initialization of the native layer SDK. Doing so means you will need to initialize the native SDK manually. Do not use this to disable the native layer. @@ -286,43 +286,43 @@ You should follow the [guide to native initialization](/platforms/dart/guides/fl - + Set this boolean to `false` to disable hard crash handling from the native layer. Doing so means that the SDK won't capture events for hard crashes on Android and iOS if the error was caused by native code. - + Set this boolean to `false` to disable the [release health](/product/releases/health/) feature. - + Set this to change the default interval to end a session (release health) if the app goes to the background. Default is 30,000. - + Set this boolean to `false` to disable the scope sync from Java to NDK on Android. - + Set this boolean to `true` to automatically attach all threads to all logged events on Android. - + Set this boolean to `false` to disable auto [tracing](/product/insights/overview/) tracking. - + Available since version 8.0.0 of Sentry Apple SDK. It was named @@ -333,55 +333,55 @@ Set this boolean to `false` to disable [watchdog termination](/platforms/apple/g - + Set this boolean to `false` to disable sync of `Scope` data to Android and iOS SDKs. - + Set this boolean to `false` to disable reporting all the package dependencies. - + Set this boolean to `true` to enable ANR (Application Not Responding) detection on Android. - + Set this to change the default interval of the ANR detection. The default is `5` seconds. - + Set this boolean to `true` to enable reporting [FlutterErrorDetails.silent](https://api.flutter.dev/flutter/foundation/FlutterErrorDetails/silent.html) errors automatically. - + Set this boolean to `false` to disable automatic breadcrumbs on the Native platforms. - + Set this boolean to `false` to disable automatic User Interactions breadcrumbs. - + Set this boolean to `false` to disable automatic User Interactions tracing. - + Sets the Proguard UUID for Android platform From 16f61391224f428d030430783cd37b0ea3893cda Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Tue, 14 Oct 2025 12:17:17 -0700 Subject: [PATCH 2/7] trying to resolve unrelated CI/CD lint error --- docs/platforms/dart/guides/flutter/configuration/options.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/dart/guides/flutter/configuration/options.mdx b/docs/platforms/dart/guides/flutter/configuration/options.mdx index 305a116eafda2..262cf09eaad29 100644 --- a/docs/platforms/dart/guides/flutter/configuration/options.mdx +++ b/docs/platforms/dart/guides/flutter/configuration/options.mdx @@ -14,7 +14,7 @@ Options that can be read from an environment variable (`SENTRY_DSN`, `SENTRY_ENV -The DSN tells the SDK where to send the events. If this value is not provided, the SDK will try to read it from the `SENTRY_DSN` environment variable. If that variable also does not exist, the SDK will just not send any events. +The DSN tells the SDK where to send the events. If this value is not provided, the SDK will try to read it from the `SENTRY_DSN` environment variable. If that variable also does not exist, the SDK will not send any events. In runtimes without a process environment (such as the browser) that fallback does not apply. From 77667e2af1687b500840ea5fd715649b0ae3af82 Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Thu, 16 Oct 2025 10:47:36 -0700 Subject: [PATCH 3/7] Apply suggestion from @buenaflor Co-authored-by: Giancarlo Buenaflor --- docs/platforms/dart/guides/flutter/configuration/options.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/dart/guides/flutter/configuration/options.mdx b/docs/platforms/dart/guides/flutter/configuration/options.mdx index 262cf09eaad29..4398e8054fa71 100644 --- a/docs/platforms/dart/guides/flutter/configuration/options.mdx +++ b/docs/platforms/dart/guides/flutter/configuration/options.mdx @@ -28,7 +28,7 @@ Turns debug mode on or off. If debug is enabled SDK will attempt to print out us - + Enabling `debug` mode makes the SDK generate as much diagnostic data as possible. However, if you'd prefer to lower the verbosity of the Sentry SDK diagnostics logs, configure this option to set the appropriate level: From 1d19a66ab8a14c0da2426ec2f646968790f14990 Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Thu, 16 Oct 2025 10:47:53 -0700 Subject: [PATCH 4/7] Apply suggestion from @buenaflor Co-authored-by: Giancarlo Buenaflor --- docs/platforms/dart/guides/flutter/configuration/options.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/dart/guides/flutter/configuration/options.mdx b/docs/platforms/dart/guides/flutter/configuration/options.mdx index 4398e8054fa71..dce60045fcb14 100644 --- a/docs/platforms/dart/guides/flutter/configuration/options.mdx +++ b/docs/platforms/dart/guides/flutter/configuration/options.mdx @@ -80,7 +80,7 @@ The maximum number of [envelopes](https://develop.sentry.dev/sdk/data-model/enve - + When enabled, stack traces are automatically attached to all messages logged. Stack traces are always attached to exceptions; however, when this option is set, stack traces are also sent with messages. This option, for instance, means that stack traces appear next to all log messages. From 0c8ff6abbbc896bca566ee76e074280020ad15e9 Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Thu, 16 Oct 2025 10:48:04 -0700 Subject: [PATCH 5/7] Apply suggestion from @buenaflor Co-authored-by: Giancarlo Buenaflor --- docs/platforms/dart/guides/flutter/configuration/options.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/dart/guides/flutter/configuration/options.mdx b/docs/platforms/dart/guides/flutter/configuration/options.mdx index dce60045fcb14..ba6d439098ffe 100644 --- a/docs/platforms/dart/guides/flutter/configuration/options.mdx +++ b/docs/platforms/dart/guides/flutter/configuration/options.mdx @@ -184,7 +184,7 @@ _(New in version 6.6.0)_ - + Once enabled, this feature automatically captures HTTP client errors, like bad response codes, as error events and reports them to Sentry. From 0406ea89ea215af4bb796860255a82a4ff3113a9 Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Thu, 16 Oct 2025 10:48:16 -0700 Subject: [PATCH 6/7] Apply suggestion from @buenaflor Co-authored-by: Giancarlo Buenaflor --- docs/platforms/dart/guides/flutter/configuration/options.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/dart/guides/flutter/configuration/options.mdx b/docs/platforms/dart/guides/flutter/configuration/options.mdx index ba6d439098ffe..b8252e3851cfb 100644 --- a/docs/platforms/dart/guides/flutter/configuration/options.mdx +++ b/docs/platforms/dart/guides/flutter/configuration/options.mdx @@ -345,7 +345,7 @@ Set this boolean to `false` to disable reporting all the package dependencies. - + Set this boolean to `true` to enable ANR (Application Not Responding) detection on Android. From 0f14faed1e840cb5f78ba07d1658bc5e0ccf52a3 Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Thu, 16 Oct 2025 10:49:05 -0700 Subject: [PATCH 7/7] Updating default in details --- docs/platforms/dart/guides/flutter/configuration/options.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/platforms/dart/guides/flutter/configuration/options.mdx b/docs/platforms/dart/guides/flutter/configuration/options.mdx index b8252e3851cfb..362ed55f86509 100644 --- a/docs/platforms/dart/guides/flutter/configuration/options.mdx +++ b/docs/platforms/dart/guides/flutter/configuration/options.mdx @@ -32,9 +32,9 @@ Turns debug mode on or off. If debug is enabled SDK will attempt to print out us Enabling `debug` mode makes the SDK generate as much diagnostic data as possible. However, if you'd prefer to lower the verbosity of the Sentry SDK diagnostics logs, configure this option to set the appropriate level: -- `debug`: **default** The most verbose mode +- `debug`: The most verbose mode - `info`: Informational messages -- `warning`: Warning that something might not be right +- `warning`: **default** Warning that something might not be right - `error`: Only SDK internal errors are printed - `fatal`: Only critical errors are printed