-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAM-3095-load-test-20k-data-capture (#204)
Full log replacement of Datadog with AppSignal. Better Logging, Alerting, Simpler adding errors
- Loading branch information
Showing
11 changed files
with
70 additions
and
39 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
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
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
# This file is used by Rack-based servers to start the application. | ||
|
||
require File.expand_path('config/environment', __dir__) | ||
begin | ||
require File.expand_path('config/environment', __dir__) | ||
rescue Exception => e | ||
Appsignal.send_error(e) | ||
raise | ||
end | ||
run Rails.application |
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,47 @@ | ||
default: | ||
&defaults # Your push api key, it is possible to set this dynamically using ERB: | ||
push_api_key: "<%= ENV['APPSIGNAL_PUSH_API_KEY'] %>" | ||
|
||
# Your app's name | ||
name: 'moth.social' | ||
working_directory_path: '/tmp/appsignal' | ||
|
||
# Actions that should not be monitored by AppSignal | ||
# 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 | ||
# ignore_errors: | ||
# - Exception | ||
# - NoMemoryError | ||
# - ScriptError | ||
# - LoadError | ||
# - NotImplementedError | ||
# - SyntaxError | ||
# - SecurityError | ||
# - SignalException | ||
# - Interrupt | ||
# - SystemExit | ||
# - SystemStackError | ||
|
||
# See https://docs.appsignal.com/ruby/configuration/options.html for | ||
# all configuration options. | ||
|
||
# Configuration per environment, leave out an environment or set active | ||
# to false to not push metrics for that environment. | ||
|
||
development: | ||
<<: *defaults | ||
active: true | ||
|
||
production: | ||
<<: *defaults | ||
active: true | ||
enable_nginx_metrics: true | ||
|
||
staging: | ||
<<: *defaults | ||
active: true | ||
enable_nginx_metrics: true |
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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
# frozen_string_literal: true | ||
|
||
|
||
console_logger = ActiveSupport::Logger.new(STDOUT) | ||
appsignal_logger = ActiveSupport::TaggedLogging.new(Appsignal::Logger.new('rails')) | ||
Rails.logger = console_logger.extend(ActiveSupport::Logger.broadcast(appsignal_logger)) |