Sha256: e4c5ca8729f2780386a3eef86f9139cafcc1233ad62093369483eeee8e31e70e

Contents?: true

Size: 488 Bytes

Versions: 5

Compression:

Stored size: 488 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,
  :log_file_path => File.join(app_settings.root, 'appsignal.log')
)

Appsignal.start_logger
Appsignal.start

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
appsignal-0.12.rc.8 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.rc.7 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.rc.6 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.rc.5 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.54 lib/appsignal/integrations/sinatra.rb