getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.81k stars 4.16k forks source link

[User Feedback] Custom `extra` context does not display in UI with User Feedback API method #73194

Open Fwang36 opened 3 months ago

Fwang36 commented 3 months ago

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

tested in SDK @sentry/nextjs 8.11.0 and @sentry/node 8.11.0

  1. Follow docs here on how to apply scope modifications to user feedback event.
  2. See that the extra key does not appear in User Feedback.
    const eventId = Sentry.captureMessage("User Feedback");

    const userFeedback = {
        name: "John Doe",
        email: "john@doe.com",
        message: "I really like your App, thanks!",
        associatedEventId: eventId,
      };

      Sentry.captureFeedback(
          userFeedback,
          {
            captureContext: {
              tags: { testingKey: "someKeyvalue" },
              extra: { testingExtra: "someExtraValue" },
            },
          },
        );

The outgoing feedback event network request includes the extra key -

Screenshot 2024-06-24 at 10 01 54 AM

The UI only shows the added tags but not the added Extra data -

Screenshot 2024-06-24 at 10 02 27 AM

Link to the feedback event in the screnshots in my org.

Expected Result

Extra data should show in the UI

Actual Result

Extra data does not show.

Product Area

User Feedback

Link

No response

DSN

No response

Version

No response

getsantry[bot] commented 3 months ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 3 months ago

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

bruno-garcia commented 3 months ago

Thanks for raising! We don't support extra's just yet. But we'll keep track of it through this ticket

bruno-garcia commented 3 months ago

For context, the SDK part is unblocked to pass extra as you've observed, but Sentry isn't yet showing that data:

https://github.com/getsentry/sentry-javascript/issues/10916#issuecomment-2134664701

Fwang36 commented 3 months ago

Ah I see, thanks!

Is there a timeline or plans to implement support for it currently?

If not yet, should we maybe remove the code block example here in the docs for now?

Screenshot 2024-06-24 at 3 32 31 PM
bruno-garcia commented 3 months ago

We don't have a timeline for that yet. Removing the note from the doc until then is a good call, thanks

Docs PR: https://github.com/getsentry/sentry-docs/pull/10484