yabeda-gruf 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/yabeda/gruf.rb +6 -3
- data/lib/yabeda/gruf/stats_collector.rb +0 -1
- data/lib/yabeda/gruf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83a3f26ca9c12d6a7cc760fe5ef50d0d64f33752e52654882991a4862cf742f8
|
4
|
+
data.tar.gz: cfbc95c4bb52f7381fae5d2654c122a65d726654975627bfeb3a0892b9845f34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bbecdf1db0aad439b60c9a9d65e49f3c9bc52ceac3e88a9b95b31e9c53f4016466ea68c857ed0f8b747fb5114037b457fff2e5bf950e233ab9949c276d40684
|
7
|
+
data.tar.gz: f54747ae6fc3473b4fc121ddaf23e6114c50840e226d341102c871e287b6032db877a3c5f66da09d47eee9d08a919f3881ee6a73ae3b420844a295f06b1a06e1
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
yabeda-gruf (1.
|
4
|
+
yabeda-gruf (1.2.0)
|
5
5
|
gruf (>= 2.7.0)
|
6
6
|
yabeda
|
7
7
|
|
@@ -17,7 +17,7 @@ GEM
|
|
17
17
|
ast (2.4.0)
|
18
18
|
byebug (10.0.2)
|
19
19
|
coderay (1.1.2)
|
20
|
-
concurrent-ruby (1.1.
|
20
|
+
concurrent-ruby (1.1.7)
|
21
21
|
diff-lcs (1.3)
|
22
22
|
dry-initializer (3.0.3)
|
23
23
|
google-protobuf (3.12.4)
|
@@ -79,7 +79,7 @@ GEM
|
|
79
79
|
tzinfo (1.2.7)
|
80
80
|
thread_safe (~> 0.1)
|
81
81
|
unicode-display_width (1.4.0)
|
82
|
-
yabeda (0.
|
82
|
+
yabeda (0.7.0)
|
83
83
|
concurrent-ruby
|
84
84
|
dry-initializer
|
85
85
|
zeitwerk (2.4.0)
|
data/lib/yabeda/gruf.rb
CHANGED
@@ -14,6 +14,7 @@ module Yabeda
|
|
14
14
|
0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, # standard
|
15
15
|
30, 60, 120, 300, 600, # Sometimes requests may be really long-running
|
16
16
|
].freeze
|
17
|
+
REQUEST_LABELS = %i[grpcService grpcMethod grpcStatus status].freeze
|
17
18
|
|
18
19
|
class << self
|
19
20
|
attr_accessor :gruf_server
|
@@ -27,11 +28,13 @@ module Yabeda
|
|
27
28
|
def configure_yabeda!
|
28
29
|
Yabeda.configure do
|
29
30
|
group :gruf do
|
30
|
-
|
31
31
|
# server interceptor
|
32
|
-
counter :served_requests_total,
|
32
|
+
counter :served_requests_total,
|
33
|
+
comment: 'A counter of the total number of gRPC requests processed.',
|
34
|
+
tags: REQUEST_LABELS
|
33
35
|
histogram :served_request_duration, unit: :seconds, buckets: LONG_RUNNING_REQUEST_BUCKETS,
|
34
|
-
comment: 'A histogram of the response latency.'
|
36
|
+
comment: 'A histogram of the response latency.',
|
37
|
+
tags: REQUEST_LABELS
|
35
38
|
|
36
39
|
# server collector
|
37
40
|
gauge :pool_jobs_waiting_total, comment: 'Number of jobs in thread pool waiting'
|
data/lib/yabeda/gruf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yabeda-gruf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kruczjak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gruf
|