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

feat(feedback): create kafka topic and consumer for ingest-feedback #3060

Closed
wants to merge 1 commit into from

Conversation

aliu39
Copy link
Member

@aliu39 aliu39 commented May 16, 2024

I recently migrated feedback off the ingest-events pipeline in all prod regions: see getsentry/sentry#66100.

This isn't a pressing change for self-hosted, but without it, we can't clean up this option which we use like a FF in relay.

Needed for getsentry/relay#3604

@aliu39 aliu39 requested review from hubertdeng123 and a team May 16, 2024 22:37
@@ -250,7 +249,8 @@ services:
# Override the entrypoint in order to avoid using envvars for config.
# Futz with settings so we can keep mmdb and conf in same dir on host
# (image looks for them in separate dirs by default).
entrypoint: ["/usr/bin/geoipupdate", "-d", "/sentry", "-f", "/sentry/GeoIP.conf"]
Copy link
Member Author

Choose a reason for hiding this comment

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

These were from my vscode formatter..

Copy link

codecov bot commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.01%. Comparing base (6032d98) to head (0c82dd7).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3060   +/-   ##
=======================================
  Coverage   99.01%   99.01%           
=======================================
  Files           3        3           
  Lines         203      203           
=======================================
  Hits          201      201           
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -363,6 +363,9 @@ services:
transactions-consumer:
<<: *sentry_defaults
command: run consumer ingest-transactions --consumer-group ingest-consumer
ingest-feedback-events:
Copy link
Member

Choose a reason for hiding this comment

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

nit: could you change this to feedback-events-consumer? It matches the naming convention of the other ingest consumers

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, should it be changed in create-kafka-topics.sh too? It's named ingest-feedback-events in prod so I was worried bout keeping consistent with that

Copy link
Member

Choose a reason for hiding this comment

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

Nope, this is just the name of the service. We need the topic to stay as ingest-feedback-events since that is the topic being published/consumed from in prod

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok so only change line 366 to feedback-events-consumer?

Copy link
Member

Choose a reason for hiding this comment

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

yep!

@@ -363,6 +363,9 @@ services:
transactions-consumer:
<<: *sentry_defaults
command: run consumer ingest-transactions --consumer-group ingest-consumer
ingest-feedback-events:
<<: *sentry_defaults
command: run consumer ingest-feedback-events --consumer-group ingest-consumer
Copy link
Member

Choose a reason for hiding this comment

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

Should we use ingest-feedback-events as the consumer group instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

Does this consumer group exist for self-hosted? I was following the convention of the other ingest consumers in this file

Copy link
Member Author

@aliu39 aliu39 May 21, 2024

Choose a reason for hiding this comment

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

Will the command create the group? If so, sure I can change that

Copy link
Member

Choose a reason for hiding this comment

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

Other ingest consumers in this file also have different consumer groups. The reason why transactions, attachments, and events all have the same consumer group is because they used to be combined, but were split in https://github.com/getsentry/self-hosted/pull/2193/files

@aliu39 aliu39 force-pushed the aliu/feedback-topic-and-consumer branch from d54e6e7 to 60f9681 Compare May 22, 2024 17:55
@aliu39 aliu39 force-pushed the aliu/feedback-topic-and-consumer branch from 60f9681 to 0c82dd7 Compare May 22, 2024 17:58
@aliu39
Copy link
Member Author

aliu39 commented May 22, 2024

My bad, lost the commit history reverting some stuff, I thought I was on another branch..

@aliu39 aliu39 requested a review from hubertdeng123 May 22, 2024 23:05
Copy link
Member

@hubertdeng123 hubertdeng123 left a comment

Choose a reason for hiding this comment

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

This looks good to me. Have you verified that a user feedback event is ingested properly yet in self-hosted? I can help out with that if not.

@aliu39
Copy link
Member Author

aliu39 commented May 23, 2024

This looks good to me. Have you verified that a user feedback event is ingested properly yet in self-hosted? I can help out with that if not.

No, think we'll need #3061 for that. I'll merge and test it tomorrow!

@hubertdeng123
Copy link
Member

@aliu3ntry You should be able to test your changes out before merging

@aliu39
Copy link
Member Author

aliu39 commented Jun 3, 2024

Had trouble ingesting feedback in self-hosted instance due to CORS error / msg being dropped by proxy before it could reach the relay processor. Tried debugging and discussed with @hubertdeng123. It'd be nice to get this working so we can enable feedback by default. But due to other commitments, we'll come back to it later.

@aliu39 aliu39 closed this Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants