-
-
Notifications
You must be signed in to change notification settings - Fork 633
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
[Sentry Bundle] Make config easier to use and deploy-friendly #348
Conversation
* Set a default value for the SENTRY_DSN env var to prevent errors during deployment * Merge config/packages/prod/sentry.yaml into config/packages/sentry.yaml * Sentry will be enabled in any environment where a non-blank SENTRY_DSN env var is provided
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.
Pull request does not pass validation.
@@ -1,4 +1,13 @@ | |||
parameters: |
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.
"parameters" should be defined via the "container" configurator instead
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 not very helpful. I have no idea what it means. Maybe it would be great to include a link to the docs describing this? /cc @fabpot
What issues do you get? You just need to add the When you install this recipe, it will automatically do this for you. |
Sure, it works fine in the "dev" environment, but when you want to deploy your app and have steps in your deployment script that warm up the cache you receive |
@ruudk please see symfony/recipes#258 for their discussion on the same issue that the Sentry bundle faces. |
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.
Pull request does not pass validation.
@@ -1,4 +1,12 @@ | |||
parameters: |
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.
"parameters" should be defined via the "container" configurator instead
Thank you for this PR. I do not agree with the reasons you specify here. I would very much like that the deployment process fails if I do not have all my environment variables set. This issue as you refer to is not specific to Sentry but it is how environment variables work. Im currently 👎 |
@Nyholm I agree, |
@msheakoski, what do you think? |
I made a few changes to the config to remove some frustrations that I encountered while developing and deploying. They were inspired by the Doctrine recipe:
Sentry will be enabled in any environment where a non-blank SENTRY_DSN env var is provided. Not setting the var or having it set to an empty string will disable Sentry error handling
@ruudk pinging you since you are the maintainer