From 3cd21044b36be9f21d98f1ca0c1511502f0727ad Mon Sep 17 00:00:00 2001 From: Rudolf Grauberger Date: Tue, 3 Sep 2024 05:33:32 +0200 Subject: [PATCH] Default value for the config key `environment` in the java sdk (#10911) * 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 --------- Co-authored-by: Alexander Dinauer Co-authored-by: Liza Mock Co-authored-by: Alexander Dinauer --- docs/platforms/java/common/configuration/options.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/platforms/java/common/configuration/options.mdx b/docs/platforms/java/common/configuration/options.mdx index d20282875b98d..b77952856ba91 100644 --- a/docs/platforms/java/common/configuration/options.mdx +++ b/docs/platforms/java/common/configuration/options.mdx @@ -57,9 +57,9 @@ 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). +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`.