Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attachments metadata to SDK feedback events #71054

Closed
aliu39 opened this issue May 16, 2024 · 3 comments
Closed

Add attachments metadata to SDK feedback events #71054

aliu39 opened this issue May 16, 2024 · 3 comments

Comments

@aliu39
Copy link
Member

aliu39 commented May 16, 2024

Problem Statement

If we want to track metrics on feedback screenshots, there's no easy way to get metadata, ex number of attachments, (currently 0/1) in the monolith. After Relay, the two types of events are processed separately and at decoupled times.

Solution Brainstorm

Adding a "num_attachments" field to the contexts object could help. Helpful code refs:

SDK:
https://github.com/getsentry/sentry-javascript/blob/d651f1319c95867be03c55f95c5878771c1e4c26/packages/types/src/feedback/sendFeedback.ts#L14
https://github.com/getsentry/sentry-javascript/blob/d651f1319c95867be03c55f95c5878771c1e4c26/packages/types/src/feedback/sendFeedback.ts#L34

Backend:

def extract_metadata(self, data):

Alternative

With the change of sending attachments in the same envelope, we could do this in relay -- however ingest is a little wary about having this sort of logic there. See convo in getsentry/relay#3603

Product Area

User Feedback

@getsantry
Copy link
Contributor

getsantry bot commented May 16, 2024

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

@billyvg billyvg removed their assignment May 27, 2024
@bruno-garcia bruno-garcia self-assigned this Jun 3, 2024
@bruno-garcia
Copy link
Member

After chatting with @mydea he said this doesn't seem to belong in the SDK. Since this data is sent to Relay, and there we have the feedback and attachments. Our goal is just analytics on feedbacks with attachments, this metric could be emitted from there.

Could you please share more details about the concerns from the Ingest team? I see as reviewers on that PR @Dav1dde and @jjbayer

To expand: our goal is to understand how many Feedbacks include attachments. So attachment statistics by themselves are not helpful to us. Project A can use feedback and attachment but might not be using the Feedback+Attachment capability we just shipped.

@aliu39
Copy link
Member Author

aliu39 commented Jun 3, 2024

Re-started discussion in getsentry/relay#3603

@aliu39 aliu39 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

3 participants