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 +4 -4
- data/CHANGELOG.md +3 -0
- data/gemfiles/Gemfile.4.2.sidekiq-4.lock +1 -1
- data/gemfiles/Gemfile.5.0.pg.lock +1 -1
- data/lib/metrician/middleware.rb +1 -1
- data/lib/metrician/version.rb +1 -1
- data/spec/metrician_spec.rb +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb5521c138568656b191ac64370ca87b9bfe3668
|
4
|
+
data.tar.gz: e513db08fd32887b149d03488cff036fe46efcf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4400530ab9c2158937cd8f09ee45ad05db2483879dbc8217eb8f2541368fbcf088388adf408b3383be432eb941046f6ff571d4bc31fc5f18528e124a0c925145
|
7
|
+
data.tar.gz: 2f8b7d7e207ff7aa166c0a3c254eff20f33e2958e9331a797e732da4b927679f19e314875410f890660b0839ea8379a321d7a4c3f81705d85a4456d8f6cf787b
|
data/CHANGELOG.md
CHANGED
data/lib/metrician/middleware.rb
CHANGED
data/lib/metrician/version.rb
CHANGED
data/spec/metrician_spec.rb
CHANGED
@@ -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
|