Skip to content

Commit 5df7895

Browse files
committed
add barnes for additional runtime info
1 parent f767fa5 commit 5df7895

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ gem 'slack-notifier'
5454
gem 'redcarpet' #markdown formatting
5555

5656
# Analytics
57-
gem 'raygun4ruby'
57+
gem 'raygun4ruby' #todo remove
5858
gem 'mixpanel-ruby'
59+
gem 'barnes'
5960

6061
# Sharing
6162
gem 'social-share-button'

Gemfile.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ GEM
8383
babel-source (>= 4.0, < 6)
8484
execjs (~> 2.0)
8585
backports (3.11.3)
86+
barnes (0.0.7)
87+
multi_json (~> 1)
88+
statsd-ruby (~> 1.1)
8689
bcrypt (3.1.12)
8790
better_errors (2.4.0)
8891
coderay (>= 1.0.0)
@@ -443,6 +446,7 @@ GEM
443446
sprockets (>= 3.0.0)
444447
sqlite3 (1.3.13)
445448
stackprof (0.2.12)
449+
statsd-ruby (1.4.0)
446450
stripe (3.15.0)
447451
faraday (~> 0.10)
448452
stripe_event (2.1.1)
@@ -509,6 +513,7 @@ DEPENDENCIES
509513
authority
510514
aws-sdk (~> 1.5)
511515
aws-sdk-s3
516+
barnes
512517
better_errors
513518
binding_of_caller
514519
bullet (>= 5.4)

config/puma.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
require 'puma/plugin/heroku'
22

3+
require 'barnes'
4+
before_fork do
5+
Barnes.start
6+
end
7+
38
workers Integer(ENV['WEB_CONCURRENCY'] || 0)
49
threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
510
threads threads_count, threads_count

0 commit comments

Comments
 (0)