Sha256: da5990c32100de65b119b9f954960f56dfa4d8198a20e2779b04d3d2c685d5ee

Contents?: true

Size: 455 Bytes

Versions: 42

Compression:

Stored size: 455 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

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

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
appsignal-3.4.11-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.11 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.10-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.10 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.9-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.9 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.8-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.8 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.7-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.7 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.6-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.6 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.5-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.5 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.4-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.4 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.3-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.3 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.2-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.2 lib/appsignal/integrations/sinatra.rb