Skip to content

Commit

Permalink
Add elastic APM to the worker
Browse files Browse the repository at this point in the history
  • Loading branch information
richardmatthewsdev committed May 20, 2019
1 parent ff6495f commit ae00f87
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ gem 'sidekiq', '= 5.2.3'
gem 'sinatra', :require => nil
gem 'supplejack_common', git: 'https://github.com/DigitalNZ/supplejack_common.git', tag: 'v2.7.0'
# gem 'supplejack_common', path: '/webspace/supplejack/common'
gem 'elastic-apm'

gem 'whenever', require: false
gem 'rubocop', require: false
Expand Down
11 changes: 11 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ GEM
dimensions (1.3.0)
domain_name (0.5.20180417)
unf (>= 0.0.5, < 1.0.0)
elastic-apm (2.8.0)
concurrent-ruby (~> 1.0)
http (>= 3.0)
erubi (1.7.1)
factory_bot (4.8.2)
activesupport (>= 3.0.0)
Expand All @@ -174,8 +177,15 @@ GEM
globalid (0.4.1)
activesupport (>= 4.2.0)
htmlentities (4.3.4)
http (4.1.1)
addressable (~> 2.3)
http-cookie (~> 1.0)
http-form_data (~> 2.0)
http_parser.rb (~> 0.6.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
http-form_data (2.1.1)
http_parser.rb (0.6.0)
i18n (1.1.0)
concurrent-ruby (~> 1.0)
jmespath (1.4.0)
Expand Down Expand Up @@ -381,6 +391,7 @@ DEPENDENCIES
chronic
cucumber-rails
database_cleaner
elastic-apm
factory_bot_rails
figaro
kaminari
Expand Down
2 changes: 1 addition & 1 deletion config/elastic_apm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server_url: <%= "http://#{ENV['HOST_IP']}:8200" %>
server_url: <%= ENV['ELASTIC_APM_SERVER_URL'] || "http://#{ENV['HOST_IP']}:8200" %>
service_name: <%= "Supplejack Worker - #{Rails.env}" %>
pool_size: <%= ENV['ELASTIC_APM_POOL_SIZE'] || 5 %>
disable_send: <%= ENV['ELASTIC_APM_DISABLE_SEND'] || true %>

0 comments on commit ae00f87

Please sign in to comment.