-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change group name to aws, update Capistrano configs
- Loading branch information
Showing
5 changed files
with
15 additions
and
14 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,12 +1,12 @@ | ||
# frozen_string_literal: true | ||
Rails.application.config.xray = { | ||
name: "Scholar-#{Rails.env}@uc", | ||
patch: %I[net_http aws_sdk], | ||
# record db transactions as subsegments | ||
active_record: true, | ||
context_missing: 'LOG_ERROR', | ||
# Makes sure the log file size does not go beyond a size, beyond which it is rotated. | ||
# Only the latest rotated log will be retained. That is, the max possible size on disk of log files, | ||
# if `SCHOLAR_XRAY_MAX_LOG_SIZE` is set to 10, would be 10MB(for the actual log) + 10MB(for the latest rotated log). | ||
logger: Logger.new("log/#{Rails.env}-xray.log", 1, Integer(ENV.fetch("SCHOLAR_XRAY_MAX_LOG_SIZE", "10"), 10).megabytes) | ||
} | ||
name: "Scholar-#{Rails.env}@uc", | ||
patch: %I[net_http aws_sdk], | ||
# record db transactions as subsegments | ||
active_record: true, | ||
context_missing: 'LOG_ERROR', | ||
# Makes sure the log file size does not go beyond a size, beyond which it is rotated. | ||
# Only the latest rotated log will be retained. That is, the max possible size on disk of log files, | ||
# if `SCHOLAR_XRAY_MAX_LOG_SIZE` is set to 10, would be 10MB(for the actual log) + 10MB(for the latest rotated log). | ||
logger: Logger.new("log/#{Rails.env}-xray.log", 1, Integer(ENV.fetch("SCHOLAR_XRAY_MAX_LOG_SIZE", "10"), 10).megabytes) | ||
} |