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.1-java lib/appsignal/integrations/sinatra.rb
appsignal-3.4.1 lib/appsignal/integrations/sinatra.rb