lib/honeycomb/configuration.rb in honeycomb-beeline-2.4.2 vs lib/honeycomb/configuration.rb in honeycomb-beeline-2.5.0

- old
+ new

@@ -10,20 +10,26 @@ :dataset, :api_host, :debug attr_writer :service_name, :client, :host_name + attr_reader :error_backtrace_limit def initialize @write_key = ENV["HONEYCOMB_WRITEKEY"] @dataset = ENV["HONEYCOMB_DATASET"] @service_name = ENV["HONEYCOMB_SERVICE"] @debug = ENV.key?("HONEYCOMB_DEBUG") + @error_backtrace_limit = 0 @client = nil end def service_name @service_name || dataset + end + + def error_backtrace_limit=(val) + @error_backtrace_limit = Integer(val) end def client options = {}.tap do |o| o[:writekey] = write_key