Sha256: 77bbd34d01bd373e31cf43e1f9afb5151f77eeb6ef4d875c68744fed51a46bc4

Contents?: true

Size: 497 Bytes

Versions: 31

Compression:

Stored size: 497 Bytes

Contents

require 'appsignal'
require 'appsignal/rack/sinatra_instrumentation'

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::SinatraInstrumentation)
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
appsignal-0.12.beta.31 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.30 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.29 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.28 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.27 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.26 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.25 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.24 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.23 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.22 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.21 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.20 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.19 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.18 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.17 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.16 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.15 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.14 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.13 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.12 lib/appsignal/integrations/sinatra.rb