Skip to content

Environment changed to lower case without being mentioned as breaking change? #899

Answered by bruno-garcia
genne asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry this cause some friction on your alerts. Sentry defaulted in all sdks to production and for ASP.NET Core that has the same behavior but with Production this became a problem and we had to introduce this breakage at somepoint. Since 3.0.0 was landing we decided it was the right time.
If you have any other Sentry SDK like JavaScript you'd end up with Production and production on the list forever. So we decided to set to production if it wasn't an explicitly set environment, but picked up from ASP.NET Core instead.

See: https://github.com/getsentry/sentry-dotnet/pull/550/files
And: https://github.com/getsentry/sentry-dotnet/pull/554/files

You can keep Production by setting it explicitl…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mattjohnsonpint
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #836 on March 23, 2021 22:08.