You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/android/configuration/options.mdx
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,9 @@ sidebar_order: 1
8
8
9
9
## Core Options
10
10
11
-
Options that can be read from an environment variable (`SENTRY_DSN`, `SENTRY_ENVIRONMENT`, `SENTRY_RELEASE`) are read automatically.
12
-
13
11
<ConfigKeyname="dsn">
14
12
15
-
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.
16
-
17
-
In runtimes without a process environment (such as the browser) that fallback does not apply.
13
+
The DSN tells the SDK where to send the events. If this value is not provided, the SDK will just not send any events.
18
14
19
15
Learn more about [DSN utilization](/product/sentry-basics/dsn-explainer/#dsn-utilization).
20
16
@@ -48,16 +44,12 @@ Sets the distribution of the application. Distributions are used to disambiguate
48
44
49
45
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 <SandboxLinkscenario="releases">sandbox</SandboxLink>.
50
46
51
-
By default the SDK will try to read this value from the `SENTRY_RELEASE` environment variable (in the browser SDK, this will be read off of the `window.SENTRY_RELEASE.id` if available).
52
-
53
47
</ConfigKey>
54
48
55
49
<ConfigKeyname="environment">
56
50
57
51
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).
58
52
59
-
By default the SDK will try to read this value from the `SENTRY_ENVIRONMENT` environment variable (except for the browser SDK where this is not applicable).
60
-
61
53
</ConfigKey>
62
54
63
55
<ConfigKeyname="sample-rate">
@@ -203,7 +195,7 @@ This only affects [automatic transactions](/platforms/android/tracing/instrument
203
195
204
196
<ConfigKeyname="enabled">
205
197
206
-
Specifies whether this SDK should send events to Sentry. Defaults to `true`. Setting this to `enabled: false` doesn't prevent all overhead from Sentry instrumentation. To disable Sentry completely, depending on environment, call `SentryAndroid.init` conditionally.
198
+
Specifies whether this SDK should send events to Sentry. Defaults to `true`. Setting this to `enabled: false` doesn't prevent all overhead from Sentry instrumentation. To disable Sentry completely call `SentryAndroid.init` conditionally.
0 commit comments