-
Notifications
You must be signed in to change notification settings - Fork 117
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
Don't activate AppSignal when the configuration file fails to load #926
Comments
Thank you! idea: version 3
version 4
|
I like the option/flag to activate the behavior opt-in and make it the default in the next major release. We can't add a CLI option/flag to whatever process starts AppSignal, but we could make it an environment variable like |
sounds good FWIW, in my use case, i am happy that I now have tests guarding me against this scenario. so, no need from me at least to build the transitional feature in version 3 as i suggested above. |
When the `config/appsignal.yml` file triggers an error while parsing it, we ignore the config file source. This can cause some unexpected behavior, like missing config and reporting it as the wrong app name. More importantly, any filter config options in the config file are missing and we may send PII data that's supposed to be filtered out. We don't want to change the behavior now, as it's a breaking change. Add a flag to opt-in to this new behavior, using the `APPSIGNAL_INACTIVE_ON_CONFIG_FILE_ERROR` config option. Then for the next major version we should make this the new default behavior. If accepted, I'll make this more visible in the diagnose report. Closes #926
When the `config/appsignal.yml` file triggers an error while parsing it, we ignore the config file source. This can cause some unexpected behavior, like missing config and reporting it as the wrong app name. More importantly, any filter config options in the config file are missing and we may send PII data that's supposed to be filtered out. We don't want to change the behavior now, as it's a breaking change. Add a flag to opt-in to this new behavior, using the `APPSIGNAL_INACTIVE_ON_CONFIG_FILE_ERROR` config option. Then for the next major version we should make this the new default behavior. If accepted, I'll make this more visible in the diagnose report. Closes #926
The change in #991 was released in package 3.4.12. You can use the |
When the configuration file
config/appsignal.yml
fails to load (a YAML or ERB error occurs while parsing), do not start AppSignal. Even if it has a valid config based on configuration from other sources (like the initial config and environment variables).Discussed in:
To do
config/appsignal.yml
) loading and parsing. For example: Use theoverride
config source and addactive: false
to it?This is a breaking change in how the config is loaded. Communicate this accordingly.
The text was updated successfully, but these errors were encountered: