-
-
Notifications
You must be signed in to change notification settings - Fork 57
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: Add EAP span subscriptions for devserver #6396
Changes from all commits
69cd898
0d7aa5a
25ba748
e0a3ab9
42b3b1a
e0f8366
d803500
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,6 +170,30 @@ def devserver(*, bootstrap: bool, workers: bool) -> None: | |
"--auto-offset-reset=latest", | ||
], | ||
), | ||
( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is an else-branch where you should add the same consumer again. normally in devserver, SEPARATE_SCHEDULER_EXECUTOR_SUBSCRIPTIONS_DEV is False, and subscription executor+scheduler are running in a single consumer (for lower resource usage) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added d803500 |
||
"subscriptions-scheduler-eap-spans", | ||
[ | ||
"snuba", | ||
"subscriptions-scheduler", | ||
"--entity=eap_spans", | ||
"--consumer-group=snuba-eap_spans-subscriptions-scheduler", | ||
"--followed-consumer-group=eap_spans_group", | ||
"--auto-offset-reset=latest", | ||
"--log-level=debug", | ||
"--schedule-ttl=10", | ||
], | ||
), | ||
( | ||
"subscriptions-executor-eap-spans", | ||
[ | ||
"snuba", | ||
"subscriptions-executor", | ||
"--dataset=events_analytics_platform", | ||
"--entity=eap_spans", | ||
"--consumer-group=snuba-eap_spans-subscription-executor", | ||
"--auto-offset-reset=latest", | ||
], | ||
), | ||
] | ||
|
||
else: | ||
|
@@ -206,6 +230,22 @@ def devserver(*, bootstrap: bool, workers: bool) -> None: | |
"--stale-threshold-seconds=900", | ||
], | ||
), | ||
( | ||
"subscriptions-scheduler-executor-eap-spans", | ||
[ | ||
"snuba", | ||
"subscriptions-scheduler-executor", | ||
"--dataset=events_analytics_platform", | ||
"--entity=eap_spans", | ||
"--consumer-group=snuba-eap_spans-subscription-executor", | ||
"--followed-consumer-group=eap_spans_group", | ||
"--auto-offset-reset=latest", | ||
"--no-strict-offset-reset", | ||
"--log-level=debug", | ||
"--schedule-ttl=10", | ||
"--stale-threshold-seconds=900", | ||
], | ||
), | ||
] | ||
|
||
if settings.ENABLE_SENTRY_METRICS_DEV: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,3 +129,9 @@ mandatory_condition_checkers: | |
stream_loader: | ||
processor: EAPSpansMessageProcessor | ||
default_topic: snuba-spans | ||
commit_log_topic: snuba-eap-spans-commit-log | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want to call out that this topic doesn't exist in production (double/triple checking this is ok) |
||
subscription_scheduler_mode: global | ||
subscription_synchronization_timestamp: orig_message_ts | ||
subscription_scheduled_topic: scheduled-subscriptions-eap-spans | ||
subscription_result_topic: eap-spans-subscription-results | ||
subscription_delay_seconds: 60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
includes this change getsentry/sentry-kafka-schemas#337