diff --git a/develop-docs/sdk/data-model/envelope-items.mdx b/develop-docs/sdk/data-model/envelope-items.mdx index ddb990ff2dd07..c8ae111923965 100644 --- a/develop-docs/sdk/data-model/envelope-items.mdx +++ b/develop-docs/sdk/data-model/envelope-items.mdx @@ -260,12 +260,12 @@ Use this to explicitly link a related error in the feedback UI. : _UUID String, optional._ The identifier of a related Session Replay in the same project. Sentry uses this ID to render a Replay clip in the feedback UI. -**Attaching Screenshots:** +**Attaching Files:** -You can associate screenshots with a feedback by sending image data as +You can attach files of any type to a feedback (screenshots, logs, documents, etc.) by sending them as [attachment items](/sdk/data-model/envelope-items/#attachment), with `event_id` -corresponding to the feedback item. We recommend sending the items in the same -Envelope. +corresponding to the feedback item. We recommend sending the attachment items in the same +Envelope as the feedback item. **Constraints:** diff --git a/develop-docs/sdk/telemetry/feedbacks.mdx b/develop-docs/sdk/telemetry/feedbacks.mdx index 468ba690c43a1..81fab475e7414 100644 --- a/develop-docs/sdk/telemetry/feedbacks.mdx +++ b/develop-docs/sdk/telemetry/feedbacks.mdx @@ -52,12 +52,12 @@ For the full list of attributes, see [Event Payloads](/sdk/data-model/event-payl } ``` -### Attaching Screenshots +### Attaching Files -You can associate screenshots with a feedback by sending image data as +You can attach files of any type to a feedback (screenshots, logs, documents, etc.) by sending them as [attachment items](/sdk/data-model/envelope-items/#attachment), with `event_id` -corresponding to the feedback item. We recommend sending the items in the same -Envelope. +corresponding to the feedback item. We recommend sending the attachment items in the same +Envelope as the feedback item. ## Full Envelope Example @@ -102,6 +102,10 @@ Envelope. "name": "John Smith" } } +{"type":"attachment","length":1234,"filename":"screenshot.png"} + +{"type":"attachment","length":567,"filename":"debug-logs.txt"} + ``` ## Feedback SDK Pipeline