Skip to content

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

Closed

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.

Activity

  1. getsantry commented on Mar 1, 2024

    @getsantry
    Contributor

    Assigning to @getsentry/support for routing ⏲️

  2. getsantry commented on Mar 1, 2024

    @getsantry
    Contributor

    Routing to @getsentry/product-owners-user-feedback for triage ⏲️

  3. bruno-garcia commented on Mar 1, 2024

    @bruno-garcia
    Member

    Transfering to the JS repo

  4. mydea commented on Mar 4, 2024

    @mydea
    Member

    Hmm, I think this is reasonable. We should probably apply the scopes to this event normally, when this is triggered directly. Thoughts @c298lee & @billyvg ?

  5. audkar commented on Mar 4, 2024

    @audkar

    Just to double check...

    Reported by a user using Android sdk

    I am experiencing an issue while using the Android SDK. Will fixing this issue in the sentry-javascript codebase resolve my issue on Android?

  6. lforst commented on Mar 4, 2024

    @lforst
    Contributor

    @audkar That depends on what exact SDK you're using. If it's the react native SDK, then yes, if it is the java sdk, then no.

  7. audkar commented on Mar 4, 2024

    @audkar

    It's Android native SDK (Java/Kotlin)

  8. 20 remaining items

  9. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Mar 4, 2024
  10. billyvg commented on Mar 4, 2024

    @billyvg
    Member

    Just to clarify here, I don't think this is SDK related at all, it seems to be a problem with our feedback backend/ui not using the correct env value.

  11. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Mar 4, 2024
  12. BranislavJenci1 commented on Mar 12, 2024

    @BranislavJenci1

    Hi, i have the same issue. Is there any hack/ quick fix that i can use until you fix the issue? Thanks.

  13. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Mar 12, 2024
  14. self-assigned this
    on Mar 12, 2024
  15. bruno-garcia commented on Mar 13, 2024

    @bruno-garcia
    Member

    I don't believe there's a work around just yet. We'll need to change the sdk to attach the environment I believe. Or pull it from the DSC of the envelope header I guess. Let's see what the engineers suggest

  16. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Mar 13, 2024
  17. JoshFerge commented on Apr 30, 2024

    @JoshFerge
    Contributor

    Fixed with #68317

  18. locked and limited conversation to collaborators on May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions