-
-
Notifications
You must be signed in to change notification settings - Fork 190
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: Added sentryMonitor macro support for specifying environments, updated CONTRIBUTING #816
Conversation
I'm not a big fan of using I do think having the option to enable/disable this functionality on an environment basis is useful, however I'm wondering if there is a case where this needs to be controlled on a monitor level or that it could be a global configuration (to enable / disable scheduled task monitoring). Or maybe we could do with both, having a config option to disable scheduled task monitoring AND have a way to specify the environments on the @cleptric WDYT? Edit: I totally forget, but thanks for taking the time to start the discussion and take the time to make a PR! |
Yeah I agree with about using app()->environment() instead, I didn't really like using config. I thought about defining the environments for all monitor calls in the config BUT my specific use case was to specify the environments for each scheduled command (instead of blanketing them all). Combining the two may be another option, having this defined in the I'm open to suggestions on changes. |
So I've changed a few things.
|
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.
Thanks for taking the time to create a PR!
@Braunson I was told that the Crons Team is working on a new feature on the Sentry UI to ignore specific environments. So, we might not need to add this to the SDK in the end. Edit: The feature was just shipped. You can hover over the environment on the Cron Monitors page (https://sentry.io/crons/) to mute or delete an environment. |
@cleptric this still isn't ideal as when this feature is out of beta, I'd still not want certain environments reporting and taking a hit on the quota. |
You won't be charged per environment. We can leave this open in the meantime, and I'll take another look next year. |
We'll add a new |
Feature
sentryMonitor()
logic to run in$this
phpcs
command. I did try running cs-fix/cs-check and there was a ton of changes (looks like mainly LF -> CRLF changes) but I didn't commit any of those changes.References