Sha256: 2192ae5ea22c3cf42040a7deb141f88d5ba5fb7a8b80101b5e7a6ebdc5454bf1
Contents?: true
Size: 1.48 KB
Versions: 9
Compression:
Stored size: 1.48 KB
Contents
require 'skylight/core/railtie' module Skylight class Railtie < Rails::Railtie include Skylight::Core::Railtie def self.config_class; Skylight::Config end def self.middleware_class; Skylight::Middleware end config.skylight = ActiveSupport::OrderedOptions.new # The environments in which skylight should be enabled config.skylight.environments = ['production'] # The path to the configuration file config.skylight.config_path = "config/skylight.yml" # The probes to load # net_http, action_controller, action_dispatch, action_view, and middleware are on by default # See https://www.skylight.io/support/getting-more-from-skylight#available-instrumentation-options # for a full list. config.skylight.probes = ['net_http', 'action_controller', 'action_dispatch', 'action_view', 'middleware', 'active_job_enqueue'] # The position in the middleware stack to place Skylight # Default is first, but can be `{ after: Middleware::Name }` or `{ before: Middleware::Name }` config.skylight.middleware_position = 0 initializer 'skylight.configure' do |app| run_initializer(app) end private def development_warning super + "\n(To disable this message for all local apps, run `skylight disable_dev_warning`.)" end def load_skylight_config(app) super.tap do |config| if config[:report_rails_env] config[:env] ||= Rails.env.to_s end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems