Skip to content

Feedbacks sent via User Feedback API not applying environment from Scope #66214

@Fwang36

Description

@Fwang36

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Reported by a user using Android sdk, I reproduced using latest NextJs sdk.

User feedback events sent via the user feedback api do not have the correct environment tag applied, even though the event the feedback is attached to has the correct environment tag.

1. Follow docs on setting up User Feedback Api

Screenshot 2024-03-01 at 10 57 47 AM

2. Set Env tag in init.

Screenshot 2024-03-01 at 10 56 16 AM

3. Send event with user feedback

4. See that event in Sentry has correct env tag set, but user feedback has default "production" env tag set.


Event has correct env tag -
Screenshot 2024-03-01 at 10 59 33 AM

Feedback has production env tag -
Screenshot 2024-03-01 at 10 59 25 AM

Link to my org where I tested all three feedbacks to check the env tags.

Expected Result

Feedback should have the same environment tag as the event.

Actual Result

Feedback does not have the same environment tag.

The tags do get set properly when using the new User feedback widget, or the Crash Report Modal. Only the API seems to exhibit this behavior.

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions