Skip to content

Commit

Permalink
Default value for the config key environment in the java sdk (#10911)
Browse files Browse the repository at this point in the history
* Update options.mdx

Adds the default value of the `environment` config key as in https://github.com/getsentry/sentry-java/blob/3a89243fa0ec48fc16193070c2224833d94f9156/sentry/src/main/java/io/sentry/SentryOptions.java#L58 specified and used in https://github.com/getsentry/sentry-java/blob/3a89243fa0ec48fc16193070c2224833d94f9156/sentry/src/main/java/io/sentry/SentryOptions.java#L852

* Apply suggestions from code review

Co-authored-by: Liza Mock <[email protected]>

---------

Co-authored-by: Alexander Dinauer <[email protected]>
Co-authored-by: Liza Mock <[email protected]>
Co-authored-by: Alexander Dinauer <[email protected]>
  • Loading branch information
4 people authored and Zylphrex committed Sep 4, 2024
1 parent 73081e4 commit 3cd2104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/platforms/java/common/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ By default the SDK will try to read this value from the `SENTRY_RELEASE` environ

<ConfigKey name="environment">

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).
Sets the environment. This string is freeform and is set to `production` by default. A release can be associated with more than one environment to separate them in the UI (think `staging` vs `prod` or similar).

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).
By default, the SDK will try to read this value from the `SENTRY_ENVIRONMENT` environment variable (except for the browser SDK where this isn't applicable). If this value isn't set, it will use the default `production`.

</ConfigKey>

Expand Down

0 comments on commit 3cd2104

Please sign in to comment.