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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cba67831ad6a67773f2de02c9f927ba569f750ca59437e8544dc46530f523338
4
- data.tar.gz: 3eca4618f70096714d01ce5a1d1292b24387bdda598f58490a4516e936523ac0
3
+ metadata.gz: 83a3f26ca9c12d6a7cc760fe5ef50d0d64f33752e52654882991a4862cf742f8
4
+ data.tar.gz: cfbc95c4bb52f7381fae5d2654c122a65d726654975627bfeb3a0892b9845f34
5
5
  SHA512:
6
- metadata.gz: 31e5b10e22305d7d6859b37791241ae32368cf3555c9bedf4ca32d2788e2727eb4b3f2f0a2033f5bb9654378f48056d7a290ddd97cac8d04fb49ec4c1452279a
7
- data.tar.gz: aa12c743c9da5b0078a5d805ae8df158ebbd70102a0b243d2e33cf4986c1e999b2075e4395f149135b55a5c878a32211b1c29ce5d65986384784c61b80245489
6
+ metadata.gz: 1bbecdf1db0aad439b60c9a9d65e49f3c9bc52ceac3e88a9b95b31e9c53f4016466ea68c857ed0f8b747fb5114037b457fff2e5bf950e233ab9949c276d40684
7
+ data.tar.gz: f54747ae6fc3473b4fc121ddaf23e6114c50840e226d341102c871e287b6032db877a3c5f66da09d47eee9d08a919f3881ee6a73ae3b420844a295f06b1a06e1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yabeda-gruf (1.1.0)
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.6)
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.6.1)
82
+ yabeda (0.7.0)
83
83
  concurrent-ruby
84
84
  dry-initializer
85
85
  zeitwerk (2.4.0)
@@ -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, comment: 'A counter of the total number of gRPC requests processed.'
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'
@@ -3,7 +3,6 @@
3
3
  module Yabeda
4
4
  module Gruf
5
5
  class StatsCollector
6
-
7
6
  def collect!
8
7
  return unless server
9
8
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yabeda
4
4
  module Gruf
5
- VERSION = '1.1.0'
5
+ VERSION = '1.2.0'
6
6
  end
7
7
  end
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.1.0
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-07-30 00:00:00.000000000 Z
11
+ date: 2020-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gruf