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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/yabeda/anycable/middleware.rb +3 -2
- data/lib/yabeda/anycable/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4da9d968e7d617ba3db90b0f0090675c296530f2baea4350ee41ed506e06da0c
|
4
|
+
data.tar.gz: edc35b76bb13d5e2bb5b9b0ffd7660dfd5b6d05b404236b048da1033a1e7f433
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 903ddeba8c0e58af2aeed7e6e98b63cbe9814f41aa4edcb317d7eb531b59d96329ccdce6ba12f959e292c35821b9f77e289087f1b16167d0fc4c65f2b33538d0
|
7
|
+
data.tar.gz: 18316773bf7eeb452fd5f842e9ce3269b654c8bbb7a563215cbe9f6f5c6e113edcc6d05ce7957381a32cf369e9eb2ecaae1f82da3031a337b990b9cbe1056a63
|
data/CHANGELOG.md
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
|
-
|
15
|
-
|
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
|
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.
|
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-
|
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.
|
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
|