class Opbeat::Configuration
Constants
- DEFAULTS
Attributes
app_id[RW]
backoff_multiplier[RW]
context_lines[RW]
current_user_method[RW]
debug_traces[RW]
disable_errors[RW]
disable_performance[RW]
disable_worker[RW]
enabled_environments[RW]
environment[RW]
excluded_exceptions[RW]
filter_parameters[RW]
logger[RW]
open_timeout[RW]
organization_id[RW]
secret_token[RW]
server[RW]
timeout[RW]
transaction_post_interval[RW]
use_ssl[RW]
view_paths[RW]
worker_quit_timeout[RW]
Public Class Methods
new(opts = {}) { |self| ... }
click to toggle source
# File lib/opbeat/configuration.rb, line 60 def initialize opts = {} DEFAULTS.merge(opts).each do |k, v| self.send("#{k}=", v) end if block_given? yield self end end
Public Instance Methods
validate!()
click to toggle source
# File lib/opbeat/configuration.rb, line 70 def validate! %w{app_id secret_token organization_id}.each do |key| raise Error.new("Opbeat Configuration missing `#{key}'") unless self.send(key) end true rescue Error => e logger.error e.message false end