-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat: Disable relay by default in devservices #32497
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
Conversation
|
What do you see as 'typical development'? Product features like alerts, performance and issues often need to ingest events locally in order to trigger alerts, or create platform specific events (eg. native). Without also adding a |
|
@markstory those should be TDD IMO. I wanted to add --with, but theres some complexity and I didn't want to turn this into a large refactor. Generally speaking I see dev as three things:
Ideally 2/3 are checked against each other (outputs/inputs), but if you can keep API contracts light it solves for it. The main thing is we cannot run production in development as a principal and I see this as a key step in enforcing that guideline. |
|
also fwiw I'm ok if we say we want a |
|
per jan we should consider controlling kafka as well (this might be harder), but at the very least making this more comprehensive I will update with:
|
|
|
|
Follow-up thought: Folks who need to run with ingest enabled likely need this permanently or at least for longer periods of time. I think you're good to merge as-is, as long as the comment + develop docs (getsentry/develop#520) are clear enough. |
4e5b7fa to
94357f6
Compare
|
I've added the flag as well to make this more flexible for dev workflows. IMO always have a setting for your local env + a flag is ideal. |
The motivation around this is driven by the principal of keeping development an MVP and lightweight. While Relay itself may not be a large resource consumer, the more exceptions we make, the more they stack up. Even when things aren't utilizing huge amounts of resources, they are still creating complexity in workflows. For example, I was developing an entirely UI-driven feature (debugging TS compile errors), and Relay kept filling up my terminal with its logs. - `SENTRY_USE_RELAY` defaults to `False`. - Add `--relay` and `--no-relay` for overriding setting.
94357f6 to
0cb063a
Compare
chadwhitacre
left a comment
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.
This is a breaking change for self-hosted, yes? I/we can add SENTRY_USE_RELAY=True to the example conf over there, but the key is not set at all currently in the example which means that existing deployments will have the setting changed for them with this PR unless they take action to update their local sentry.conf.py. Am I reading this right?
Alternately we can try to be creative and modify their |
chadwhitacre
left a comment
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.
False alarm. Devserver is the only thing that consumes SENTRY_USE_RELAY. 👍

The motivation around this is driven by the principal of keeping development an MVP and lightweight. While Relay itself may not be a large resource consumer, the more exceptions we make, the more they stack up. Even when things aren't utilizing huge amounts of resources, they are still creating complexity in workflows. For example, I was developing an entirely UI-driven feature (debugging TS compile errors), and Relay kept filling up my terminal with its logs.
See also getsentry/getsentry#7136