lib/remnant/configuration.rb in remnant-0.2.1 vs lib/remnant/configuration.rb in remnant-0.2.2

- old
+ new

@@ -10,10 +10,12 @@ attr_reader :port_number # api key to use with payloads attr_reader :tag + attr_reader :sample_rate + def host(value) @hostname = value end def port(value) @@ -26,15 +28,20 @@ def environment(value) @env = value end + def sample(value) + @sample_rate = value + end + def defaults! # configure some defaults @hostname = '127.0.0.1' @port_number = 8125 @tag = 'remnant' + @sample_rate = 10 self end # end defaults! end end