Skip to content

sessions sent without an environment when environment option is not set #6239

@kerenkhatiwada

Description

@kerenkhatiwada

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/node

SDK Version

7.19.0

Framework Version

No response

Link to Sentry event

No response

Steps to Reproduce

  1. set the environment and release options
  2. Send an error event and session
  3. Observe that session and error event with the correct environment
  4. repeat without setting the environment option
  5. Observe the error event with an environment of production
  6. Observe the session with no environment

Expected Result

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 Result

sessions are sent without an environment set

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions