sentry-docs icon indicating copy to clipboard operation
sentry-docs copied to clipboard

SDK dev docs for User Feedback v2

Open bruno-garcia opened this issue 1 year ago • 1 comments

Which section?

SDK -> Expected Feature -> User Feedback

Page URL

https://develop.sentry.dev/sdk/expected-features/#user-feedback

Description

Copying from the old repo, which got archived:

  • https://github.com/getsentry/develop/issues/1206

The current User Feedback SDK is documented here: https://develop.sentry.dev/sdk/features/#user-feedback

With the new feedback product allowing for capture of feedback outside errors. With the ability to include attachments (e.g: screenshots), tags, and other user context. The protocol has been expanded.

A new API is also being done on JS. Aligning on a new function captureFeedback. The previous captureUserFeedback can be deprecated in favor of the new.

The eventId that we took before is now optional. And the plan is to rename it to something else since the feedback itself will have an id, and eventId is ambiguous.

Document the new envelope format too. Mark the old one as deprecated.

This will unblock in particular the Mobile SDKs

Relates to:

  • https://github.com/getsentry/sentry-javascript/issues/10953
  • https://github.com/getsentry/develop/issues/1208 Worth linking/connecting the two docs ^
  • [ ] Document max length based on @aliu39 's change (specifcy units, like bytes, not characters) (https://github.com/getsentry/sentry/pull/79326)

Suggested Solution

Clarify the new API and guidelines

bruno-garcia avatar Oct 22 '24 18:10 bruno-garcia

The linked PR truncates messages to 4096 characters on Sentry backend, and doesn't error. It is not aware of bytes/encodings, since this is way after envelope processing. This is meant as a temporary measure before we add limits in the envelope schema, and dropped outcomes in Relay.

Until we have updates on the schema, I'd recommend documenting "4096 characters max per message".

aliu39 avatar Oct 22 '24 19:10 aliu39

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

getsantry[bot] avatar Nov 07 '24 15:11 getsantry[bot]