Sha256: 7efc52308a50366ccd49070e40627aa8b6f9136c98e5b533d440492c08b20af3

Contents?: true

Size: 441 Bytes

Versions: 20

Compression:

Stored size: 441 Bytes

Contents

require 'appsignal'

Appsignal.logger.info("Loading Sinatra (#{Sinatra::VERSION}) integration")

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

Appsignal.start_logger(app_settings.root)

Appsignal.start

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
appsignal-0.11.5 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.4 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.4.beta.0 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.3 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.2 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.0 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.0.beta.2 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.0.beta.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.10.6 lib/appsignal/integrations/sinatra.rb
appsignal-0.10.5 lib/appsignal/integrations/sinatra.rb
appsignal-0.10.4 lib/appsignal/integrations/sinatra.rb
appsignal-0.10.3 lib/appsignal/integrations/sinatra.rb
appsignal-0.10.2 lib/appsignal/integrations/sinatra.rb
appsignal-0.10.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.10.0 lib/appsignal/integrations/sinatra.rb
appsignal-0.9.6 lib/appsignal/integrations/sinatra.rb
appsignal-0.9.5 lib/appsignal/integrations/sinatra.rb
appsignal-0.10.0.beta.0 lib/appsignal/integrations/sinatra.rb
appsignal-0.9.4 lib/appsignal/integrations/sinatra.rb