Add activate_if_environment helper for Appsignal.configure. Avoid having to add conditionals to your configuration file and use the activate_if_environment helper to specify for which environments AppSignal should become active. AppSignal will automatically detect the environment and activate itself it the environment matches one of the listed environments.
# Before
Appsignal.configure do |config|
config.active = Rails.env.production? || Rails.env.staging?
end
After
Appsignal.configure do |config|
Activate for one environment
config.activate_if_environment(:production)
Activate for multiple environments
config.activate_if_environment(:production, :staging)
end
Set the app revision config option for Scalingo deploys automatically. If the CONTAINER_VERSION system environment variable is present, it will use used to set the revision config option automatically. Overwrite it's value by configuring the revision config option for your application. (patch 35449268)
Changed
Ignore the Rails healthcheck endpoint (Rails::HealthController#show) by default for Rails apps.
If the ignore_actions option is set in the config/appsignal.yml file, the default is overwritten.
If the APPSIGNAL_IGNORE_ACTIONS environment variable is set, the default is overwritten.
When using the Appsignal.configure helper, add more actions to the default like so:
# config/appsignal.rb
Appsignal.configure do |config|
# Add more actions to ignore
config.ignore_actions << "My action"
end
To overwrite the default using the Appsignal.configure helper, do either of the following:
# config/appsignal.rb
Appsignal.configure do |config|
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps appsignal from 4.1.2 to 4.1.3.
Changelog
Sourced from appsignal's changelog.
... (truncated)
Commits
bde88e4
Publish package v4.1.399884fd
Merge pull request #1329 from appsignal/update-agent/0.35.2879ac5bb
Update agent to version 0.35.283544926
Update agent to version 0.35.27 (#1326)b2c2499
Lower diagnose log message to info level (#1325)ff31be8
Add Config active_if_environment helper (#1323)a5600bb
Refactor same config detection (#1322)eeb5fab
Merge pull request #1321 from appsignal/ignore-rails-healthcheck4aaac06
Fix duplicate Railtie default config in specsaf71fb9
Automatically ignore Rails' health-checkDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show