Description
Similar to getsentry/sentry-cocoa#2411
If the environment is not set for the SDK errors will default to production. However, sessions are sent without an environment.
Expected outcome: sessions would be sent with an environment
Actual outcome: sessions are sent without an environment set
Steps To Reproduce
- set the environment and release options
- Send an error event and session
- Observe that session and error event with the correct environment
- repeat without setting the environment option
- Observe the error event with an environment of production
- Observe the session with no environment
Description
Similar to getsentry/sentry-cocoa#2411
If the environment is not set for the SDK errors will default to production. However, sessions are sent without an environment.
Expected outcome: sessions would be sent with an environment
Actual outcome: sessions are sent without an environment set
Steps To Reproduce