Skip to content

Commit

Permalink
Update Rails sidekiq app to Ruby gem 4
Browse files Browse the repository at this point in the history
Update it to use the integration loader mechanism.
  • Loading branch information
tombruijn committed Aug 23, 2024
1 parent 7144c16 commit 61a0f46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ruby/rails7-sidekiq/app/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: /integration
specs:
appsignal (3.10.0)
appsignal (4.0.0)
rack

GEM
Expand Down Expand Up @@ -155,7 +155,7 @@ GEM
psych (5.1.2)
stringio
public_suffix (5.0.3)
puma (6.4.0)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.8.0)
rack (3.1.3)
Expand Down Expand Up @@ -244,7 +244,7 @@ GEM
thor (1.3.1)
tilt (2.3.0)
timeout (0.4.1)
turbo-rails (1.4.0)
turbo-rails (2.0.6)
actionpack (>= 6.0.0)
activejob (>= 6.0.0)
railties (>= 6.0.0)
Expand Down
2 changes: 2 additions & 0 deletions ruby/rails7-sidekiq/app/config/puma.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
plugin :appsignal

# Puma can serve each request in a thread from an internal thread pool.
# The `threads` method setting takes two numbers: a minimum and maximum.
# Any libraries that use thread pools should be configured to match
Expand Down
3 changes: 2 additions & 1 deletion ruby/rails7-sidekiq/app/config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require "sidekiq/web"
require 'sinatra/base'
require "appsignal/integrations/sinatra"

Appsignal.load(:sinatra)

class SinatraApp < Sinatra::Base
get '/' do
Expand Down

0 comments on commit 61a0f46

Please sign in to comment.