Sha256: 657eedeeab309b13211ee22d4a480722cb6024808d77115d4fca9028a780eae7
Contents?: true
Size: 600 Bytes
Versions: 2
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true require "appsignal" require "appsignal/rack/sinatra_instrumentation" Appsignal.internal_logger.debug("Loading Sinatra (#{Sinatra::VERSION}) integration") unless Appsignal.active? app_settings = ::Sinatra::Application.settings Appsignal.config = Appsignal::Config.new( app_settings.root || Dir.pwd, app_settings.environment ) Appsignal.start_logger Appsignal.start end if Appsignal.active? ::Sinatra::Base.use( ::Rack::Events, [Appsignal::Rack::EventHandler.new] ) ::Sinatra::Base.use(Appsignal::Rack::SinatraBaseInstrumentation) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appsignal-3.9.2-java | lib/appsignal/integrations/sinatra.rb |
appsignal-3.9.2 | lib/appsignal/integrations/sinatra.rb |