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.5.4-java lib/appsignal/integrations/sinatra.rb
appsignal-3.5.4 lib/appsignal/integrations/sinatra.rb
appsignal-3.5.3-java lib/appsignal/integrations/sinatra.rb
appsignal-3.5.3 lib/appsignal/integrations/sinatra.rb
appsignal-3.5.2-java lib/appsignal/integrations/sinatra.rb
appsignal-3.5.2 lib/appsignal/integrations/sinatra.rb
appsignal-3.5.1-java lib/appsignal/integrations/sinatra.rb
appsignal-3.5.1 lib/appsignal/integrations/sinatra.rb
appsignal-3.5.0-java lib/appsignal/integrations/sinatra.rb
appsignal-3.5.0 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.16-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.16 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.15-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.15 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.14-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.14 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.13-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.13 lib/appsignal/integrations/sinatra.rb
appsignal-3.4.12-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.12 lib/appsignal/integrations/sinatra.rb