-
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.
Merge pull request #1327 from appsignal/config-rb-install
Add Ruby config file option to installer
- Loading branch information
Showing
4 changed files
with
363 additions
and
90 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,22 @@ | ||
# 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 %>" | ||
|
||
# Configure actions that should not be monitored by AppSignal. | ||
# For more information see our docs: | ||
# https://docs.appsignal.com/ruby/configuration/ignore-actions.html | ||
# config.ignore_actions << "ApplicationController#isup" | ||
|
||
# Configure 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 << "MyCustomError" | ||
end |
Oops, something went wrong.