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.3.11-java lib/appsignal/integrations/sinatra.rb
appsignal-3.3.11 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.0-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.0 lib/appsignal/integrations/sinatra.rb
appsignal-3.3.10-java lib/appsignal/integrations/sinatra.rb
appsignal-3.3.10 lib/appsignal/integrations/sinatra.rb
appsignal-3.3.9-java lib/appsignal/integrations/sinatra.rb
appsignal-3.3.9 lib/appsignal/integrations/sinatra.rb
appsignal-3.3.8-java lib/appsignal/integrations/sinatra.rb
appsignal-3.3.8 lib/appsignal/integrations/sinatra.rb
appsignal-3.3.7-java lib/appsignal/integrations/sinatra.rb
appsignal-3.3.7 lib/appsignal/integrations/sinatra.rb
appsignal-3.3.6-java lib/appsignal/integrations/sinatra.rb
appsignal-3.3.6 lib/appsignal/integrations/sinatra.rb
appsignal-3.3.5-java lib/appsignal/integrations/sinatra.rb
appsignal-3.3.5 lib/appsignal/integrations/sinatra.rb
appsignal-3.3.4-java lib/appsignal/integrations/sinatra.rb
appsignal-3.3.4 lib/appsignal/integrations/sinatra.rb
appsignal-3.3.3-java lib/appsignal/integrations/sinatra.rb
appsignal-3.3.3 lib/appsignal/integrations/sinatra.rb