Sha256: 60d793c1fe9dd607546794ca667c8531e0e5fa4d4eaddc6fb7167e46164e2680

Contents?: true

Size: 420 Bytes

Versions: 22

Compression:

Stored size: 420 Bytes

Contents

require 'appsignal'

Appsignal.logger.info('Loading Sinatra integration')

app_settings = ::Sinatra::Application.settings
Appsignal.config = Appsignal::Config.new(
  app_settings.root,
  app_settings.environment
)

Appsignal.start_logger(app_settings.root)

if Appsignal.active?
  Appsignal.start
  ::Sinatra::Application.use(Appsignal::Rack::Listener)
  ::Sinatra::Application.use(Appsignal::Rack::Instrumentation)
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
appsignal-0.9.2 lib/appsignal/integrations/sinatra.rb
appsignal-0.9.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.9.0 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.15 lib/appsignal/integrations/sinatra.rb
appsignal-0.9.0.beta.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.9.0.alpha.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.14 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.13 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.12 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.11 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.10 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.8 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.7 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.7.alpha.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.6 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.6.beta.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.6.beta.0 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.5 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.4 lib/appsignal/integrations/sinatra.rb
appsignal-0.8.4.beta.1 lib/appsignal/integrations/sinatra.rb