metrician 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 723f0b86a48f4c5105357ce4df6c792e53824849
4
- data.tar.gz: df432f573bc722606600b382ec4762ced6a19fc7
3
+ metadata.gz: cb5521c138568656b191ac64370ca87b9bfe3668
4
+ data.tar.gz: e513db08fd32887b149d03488cff036fe46efcf5
5
5
  SHA512:
6
- metadata.gz: 728a482d9a7a8a7e95db8b6c429fc418051fcef77cf9bf67b51b449f1d9f8e1ccc1a7df0faf4c9910f83183ee7f5e1cab32031d38e810ef7f78950b5d39305ad
7
- data.tar.gz: 4f683f3998d632daff059f965fd7f383cff9d817b45a5d35dd29aad75b1db5497bda39264467369fca6edfb56ea42b43474026414a23f114de65e6d76e838f4b
6
+ metadata.gz: 4400530ab9c2158937cd8f09ee45ad05db2483879dbc8217eb8f2541368fbcf088388adf408b3383be432eb941046f6ff571d4bc31fc5f18528e124a0c925145
7
+ data.tar.gz: 2f8b7d7e207ff7aa166c0a3c254eff20f33e2958e9331a797e732da4b927679f19e314875410f890660b0839ea8379a321d7a4c3f81705d85a4456d8f6cf787b
@@ -1,3 +1,6 @@
1
+ ### 0.0.6 [July 25, 2017]
2
+ * Fix edge case in web error tracking
3
+
1
4
  ### 0.0.5 [July 25, 2017]
2
5
  * Automate Resque integration
3
6
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- metrician (0.0.5)
4
+ metrician (0.0.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- metrician (0.0.5)
4
+ metrician (0.0.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -34,7 +34,7 @@ module Metrician
34
34
  end
35
35
 
36
36
  def self.error?
37
- @request ||= configuration[:error][:enabled]
37
+ @error ||= configuration[:error][:enabled]
38
38
  end
39
39
 
40
40
  def self.idle?
@@ -1,5 +1,5 @@
1
1
  module Metrician
2
2
 
3
- VERSION = "0.0.5".freeze
3
+ VERSION = "0.0.6".freeze
4
4
 
5
5
  end
@@ -261,6 +261,17 @@ RSpec.describe Metrician do
261
261
  agent.should_receive(:increment).with("web.error", 1)
262
262
  get "/"
263
263
  end
264
+
265
+ specify "500s are instrumented for error tracking without request tracking" do
266
+ Metrician.configuration[:request_timing][:request][:enabled] = false
267
+ Metrician.configuration[:request_timing][:error][:enabled] = true
268
+ agent.stub(:gauge)
269
+ agent.stub(:increment)
270
+
271
+ agent.should_not_receive(:gauge).with("web.request", anything)
272
+ agent.should_receive(:increment).with("web.error", 1)
273
+ get "/"
274
+ end
264
275
  end
265
276
 
266
277
  describe "middleware exceptions" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metrician
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Expected Behavior