Sha256: 2528aed7488cf7dda561920e2273f41c709fbf435829afe9339008903b584691

Contents?: true

Size: 461 Bytes

Versions: 96

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

require "appsignal"
require "appsignal/rack/sinatra_instrumentation"

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

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

Appsignal.start_logger
Appsignal.start

if Appsignal.active?
  ::Sinatra::Base.use(Appsignal::Rack::SinatraBaseInstrumentation)
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
appsignal-3.0.21.alpha.1-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.21.alpha.1 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.20-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.20 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.19-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.19 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.18-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.18 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.17-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.17 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.16-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.16 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.15-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.15 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.14-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.14 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.13-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.13 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.12-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.12 lib/appsignal/integrations/sinatra.rb