Skip to content

Commit

Permalink
Add barnes gem to gather stats on workers
Browse files Browse the repository at this point in the history
  • Loading branch information
tarebyte committed Jul 27, 2023
1 parent 0aa1184 commit 17b6486
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ gem 'active_model_serializers', '~> 0.10.9'
gem 'premailer-rails', '~>1.10.3'
gem 'gemoji'
gem 'truncato', '~> 0.7.12'
gem 'barnes', '~> 0.0.9'

group :development, :test do
gem 'byebug', platforms: %i[mri mingw x64_mingw]
Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ GEM
public_suffix (>= 2.0.2, < 4.0)
arel (9.0.0)
ast (2.4.2)
barnes (0.0.9)
multi_json (~> 1)
statsd-ruby (~> 1.1)
better_errors (2.5.1)
coderay (>= 1.0.0)
erubi (>= 1.0.0)
Expand Down Expand Up @@ -293,6 +296,7 @@ GEM
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
statsd-ruby (1.5.0)
storyblok (2.0.5)
rest-client (>= 1.8.0, < 3)
thor (1.0.1)
Expand Down Expand Up @@ -333,6 +337,7 @@ PLATFORMS

DEPENDENCIES
active_model_serializers (~> 0.10.9)
barnes (~> 0.0.9)
better_errors (~> 2.5)
binding_of_caller (~> 0.8.0)
bootsnap (>= 1.1.0)
Expand Down
5 changes: 5 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@

# Allow puma to be restarted by `rails restart` command.
plugin :tmp_restart

before_fork do
# https://devcenter.heroku.com/articles/language-runtime-metrics-ruby#getting-started
Barnes.start
end

0 comments on commit 17b6486

Please sign in to comment.