yabeda-anycable 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3f53fe940b5a2585e4ddd6a623dd487830355408582d05f1fabd544a6716eb4
4
- data.tar.gz: ebc45e6e08150bf20348ae3cfcc499f8d984f620f773d939b4eafbd298c8dee5
3
+ metadata.gz: 4da9d968e7d617ba3db90b0f0090675c296530f2baea4350ee41ed506e06da0c
4
+ data.tar.gz: edc35b76bb13d5e2bb5b9b0ffd7660dfd5b6d05b404236b048da1033a1e7f433
5
5
  SHA512:
6
- metadata.gz: 63cd80c5080438ad26f60f2a500fe00553ae145f814e44fa6e5952d1c1b729d13bea2c1f23642af87edc0c6428349af340ecb3ed4b0aef89e3d6d2c3ba737ba7
7
- data.tar.gz: 0aa7b7a938246af0f13dc1624c37df5d0ab8f491e2d006b3eeb2119ae7faf0a7b319082d64ab9d199f4f151f54b45c1234d2bf5b8fe784dcd87373b488d9be23
6
+ metadata.gz: 903ddeba8c0e58af2aeed7e6e98b63cbe9814f41aa4edcb317d7eb531b59d96329ccdce6ba12f959e292c35821b9f77e289087f1b16167d0fc4c65f2b33538d0
7
+ data.tar.gz: 18316773bf7eeb452fd5f842e9ce3269b654c8bbb7a563215cbe9f6f5c6e113edcc6d05ce7957381a32cf369e9eb2ecaae1f82da3031a337b990b9cbe1056a63
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.1.2] - 2022-09-21
2
+
3
+ ### Fixed
4
+
5
+ - Handle the case when application code raises an error on command. See [pull request №4](https://github.com/yabeda-rb/yabeda-anycable/pull/4)
6
+
1
7
  ## [0.1.1] - 2022-02-15
2
8
 
3
9
  ### Changed
@@ -11,8 +11,9 @@ module Yabeda
11
11
  (response = yield)
12
12
  ensure
13
13
  elapsed = (Process.clock_gettime(Process::CLOCK_MONOTONIC) - started).round(4)
14
- labels = { method: rpc_method_name.to_s, status: response.status.to_s }
15
- labels[:command] = request.respond_to?(:command) ? request.command : ""
14
+ status = response.respond_to?(:status) ? response.status.to_s : "ERROR"
15
+ command = request.respond_to?(:command) ? request.command : ""
16
+ labels = { method: rpc_method_name.to_s, status: status, command: command }
16
17
  ::Yabeda.anycable.rpc_call_count.increment(labels)
17
18
  ::Yabeda.anycable.rpc_call_runtime.measure(labels, elapsed)
18
19
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yabeda
4
4
  module AnyCable
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yabeda-anycable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-15 00:00:00.000000000 Z
11
+ date: 2022-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anycable-core
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
- rubygems_version: 3.2.32
92
+ rubygems_version: 3.2.33
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: Collect performance metrics for AnyCable RPC server