lib/elastic_apm/config.rb in elastic-apm-1.0.0.beta1 vs lib/elastic_apm/config.rb in elastic-apm-1.0.0.beta2

- old
+ new

@@ -23,10 +23,11 @@ flush_interval: 10, transaction_sample_rate: 1.0, transaction_max_spans: 500, filter_exception_types: [], + disable_send: false, http_read_timeout: 120, http_open_timeout: 60, debug_transactions: false, debug_http: false, verify_server_cert: true, @@ -91,10 +92,11 @@ 'ELASTIC_APM_TRANSACTION_SAMPLE_RATE' => [:float, 'transaction_sample_rate'], 'ELASTIC_APM_VERIFY_SERVER_CERT' => [:bool, 'verify_server_cert'], 'ELASTIC_APM_TRANSACTION_MAX_SPANS' => [:int, 'transaction_max_spans'], + 'ELASTIC_APM_DISABLE_SEND' => [:bool, 'disable_send'], 'ELASTIC_APM_DISABLED_SPIES' => [:list, 'disabled_spies'] }.freeze def initialize(options = {}) set_defaults @@ -133,10 +135,11 @@ attr_accessor :transaction_sample_rate attr_accessor :transaction_max_spans attr_accessor :verify_server_cert attr_accessor :filter_exception_types + attr_accessor :disable_send attr_accessor :http_read_timeout attr_accessor :http_open_timeout attr_accessor :debug_transactions attr_accessor :debug_http attr_accessor :http_compression @@ -162,9 +165,10 @@ attr_reader :custom_key_filters attr_reader :ignore_url_patterns alias :disable_environment_warning? :disable_environment_warning alias :verify_server_cert? :verify_server_cert + alias :disable_send? :disable_send def app=(app) case app_type?(app) when :sinatra set_sinatra(app)