Skip to content

Commit

Permalink
environment: default and env var
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-garcia authored Dec 9, 2023
1 parent 2f2e32e commit 6f9cd46
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/platforms/common/configuration/environments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ description: "Learn how to configure your SDK to tell Sentry about your environm

Environments tell you where an error occurred, whether that's in your production system, your staging server, or elsewhere.

<Note>

The default value is `production`.

</Note>

Sentry automatically creates an environment when it receives an event with the `environment` parameter set.

Environments are case sensitive. The environment name can't contain newlines, spaces or forward slashes, can't be the string "None", or exceed 64 characters. You can't delete environments, but you can [hide](/product/sentry-basics/environments/#hidden-environments) them.

<PlatformContent includePath="set-environment" />

Environments help you better filter issues, releases, and user feedback in the Issue Details page of sentry.io, which you learn more about in our [documentation that covers using environments](/product/sentry-basics/environments/).

When applicable, you can control the value via the environment variable `SENTRY_ENVIRONMENT`.

0 comments on commit 6f9cd46

Please sign in to comment.