Skip to content

feat: add capture feedback API - #1419

Open
al1re3a wants to merge 3 commits into
getsentry:masterfrom
al1re3a:feat/capture-feedback-842
Open

feat: add capture feedback API#1419
al1re3a wants to merge 3 commits into
getsentry:masterfrom
al1re3a:feat/capture-feedback-842

Conversation

@al1re3a

@al1re3a al1re3a commented Sep 4, 2026

Copy link
Copy Markdown

Description

Adds first-class support for the new Sentry User Feedback format.

  • exposes CaptureFeedback through the package, Hub, and Client APIs
  • adds a Feedback model with message, contact, URL, source, and associated-event fields
  • sends feedback using the dedicated envelope item and rate-limit category
  • preserves scope tags, contexts, attachments, and event processors
  • covers both legacy and telemetry transport paths

Issues

Testing

  • go test -count=1 -timeout 300s -race work
  • go vet work
  • golangci-lint v2.11.4 run ./... (0 issues)

Add a first-class Feedback model and capture methods across the client, hub, and package APIs. Send feedback with the dedicated envelope item and rate-limit category, with tests for both transport paths.

Co-Authored-By: OpenAI Codex <noreply@openai.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0881cba. Configure here.

Comment thread client.go
Comment thread client.go
Comment thread interfaces.go
Keep user feedback unsampled and separate from the error BeforeSend hook. Preserve the feedback event type in both normal and pre-serialized JSON payloads.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Comment thread hub.go
Co-Authored-By: GPT-6 <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add function to capture user feedback

1 participant