-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ruby config file option to installer
To replace the YAML config file people need to know they can configure the gem with a Ruby config file too. Add this option to the installer so people can choose this config option when installing AppSignal in their application. I've made it the first listed method as it's the most flexible configuration method. The YAML file option has the "legacy" label next to it now to discourage people from using it.
- Loading branch information
Showing
4 changed files
with
318 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
bump: patch | ||
type: add | ||
--- | ||
|
||
Add the `config/appsignal.rb` Ruby config file method to installer, `appsignal install`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# AppSignal Ruby gem configuration | ||
# Visit our documentation for a list of all available configuration options. | ||
# https://docs.appsignal.com/ruby/configuration/options.html | ||
Appsignal.configure do |config| | ||
config.activate_if_environment(<%= environments.map(&:inspect).join(", ") %>) | ||
config.name = <%= app_name.inspect %> | ||
# The application's Push API key | ||
# We recommend removing this line and setting this option with the | ||
# APPSIGNAL_PUSH_API_KEY environment variable instead. | ||
# https://docs.appsignal.com/ruby/configuration/options.html#option-push_api_key | ||
config.push_api_key = "<%= push_api_key %>" | ||
|
||
# Actions that should not be monitored by AppSignal | ||
# config.ignore_actions << "ApplicationController#isup" | ||
|
||
# Errors that should not be recorded by AppSignal | ||
# For more information see our docs: | ||
# https://docs.appsignal.com/ruby/configuration/ignore-errors.html | ||
# config.ignore_errors += [ | ||
# "Exception", | ||
# "NoMemoryError", | ||
# "ScriptError", | ||
# "LoadError", | ||
# "NotImplementedError", | ||
# "SyntaxError", | ||
# "SecurityError", | ||
# "SignalException", | ||
# "Interrupt", | ||
# "SystemExit", | ||
# "SystemStackError" | ||
# ] | ||
end |
Oops, something went wrong.