Skip to content

Commit e5a9591

Browse files
authored
Remove environment variables in Android options (#15037)
* removed environment variables references in Android options, as they are not used
1 parent f626de5 commit e5a9591

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

docs/platforms/android/configuration/options.mdx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@ sidebar_order: 1
88

99
## Core Options
1010

11-
Options that can be read from an environment variable (`SENTRY_DSN`, `SENTRY_ENVIRONMENT`, `SENTRY_RELEASE`) are read automatically.
12-
1311
<ConfigKey name="dsn">
1412

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.
1814

1915
Learn more about [DSN utilization](/product/sentry-basics/dsn-explainer/#dsn-utilization).
2016

@@ -48,16 +44,12 @@ Sets the distribution of the application. Distributions are used to disambiguate
4844

4945
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 <SandboxLink scenario="releases">sandbox</SandboxLink>.
5046

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-
5347
</ConfigKey>
5448

5549
<ConfigKey name="environment">
5650

5751
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).
5852

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-
6153
</ConfigKey>
6254

6355
<ConfigKey name="sample-rate">
@@ -203,7 +195,7 @@ This only affects [automatic transactions](/platforms/android/tracing/instrument
203195

204196
<ConfigKey name="enabled">
205197

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.
207199

208200
</ConfigKey>
209201

0 commit comments

Comments
 (0)