Sha256: 70a281cbb02c6b64caf2ae982f2780d34efdd1d98f31247a40a8d175b3da99e0
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
raise 'This appsignal gem only works with rails' unless defined?(Rails) module Appsignal class << self attr_accessor :subscriber, :event_payload_sanitizer def active? config && config[:active] == true end def logger if Rails.root @logger ||= Logger.new("#{Rails.root}/log/appsignal.log").tap do |l| l.level = Logger::INFO end end end def transactions @transactions ||= {} end def agent @agent ||= Appsignal::Agent.new end def config @config ||= Appsignal::Config.new(Rails.root, Rails.env).load end def event_payload_sanitizer @event_payload_sanitizer ||= proc { |event| event.payload } end end end require 'appsignal/cli' require 'appsignal/config' require 'appsignal/transmitter' require 'appsignal/agent' require 'appsignal/marker' require 'appsignal/middleware' require 'appsignal/transaction' require 'appsignal/exception_notification' require 'appsignal/auth_check' require 'appsignal/version' require 'appsignal/railtie'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appsignal-0.4.7 | lib/appsignal.rb |
appsignal-0.4.6 | lib/appsignal.rb |