grpcx 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/grpcx.gemspec +2 -2
- data/lib/grpcx/server/interceptors/instrumentation.rb +8 -8
- 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: 7e6bcd16e9fceffd33f50eb1f4329ce55b9c983ff434f8688cbc2cf2432012d0
|
4
|
+
data.tar.gz: 79fb5b99a06087b37e0a8af8c36c13eebaf07b81a797459144b144adcecc3e07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e19042030a742d1f985dde51ef366402bbd062c3fe4f2d17d987c6dbc40db0cf069ad61f746648291987d0011b38d28f757e3dd8b9b5bdcdff738ba34029b228
|
7
|
+
data.tar.gz: a79ba2d070d331afa74b95f439f0cfa0fa243d2e5c6b11186d3175374f3a435b304082ad67ec2ba34230415dda06add606101b0762ed8823b36b4c4c19448443
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/grpcx.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'grpcx'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.1'
|
4
4
|
s.authors = ['Black Square Media Ltd']
|
5
5
|
s.email = ['info@blacksquaremedia.com']
|
6
6
|
s.summary = %(gRPC extensions/helpers)
|
7
7
|
s.description = %()
|
8
|
-
s.homepage = 'https://
|
8
|
+
s.homepage = 'https://github.com/bsm/grpcx'
|
9
9
|
s.license = 'MIT'
|
10
10
|
|
11
11
|
s.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^spec/}) }
|
@@ -6,20 +6,20 @@ module Grpcx
|
|
6
6
|
class Instrumentation < GRPC::ServerInterceptor
|
7
7
|
METRIC_NAME = 'process_action.grpc'.freeze
|
8
8
|
|
9
|
-
def request_response(
|
10
|
-
instrument(action: method, &block)
|
9
|
+
def request_response(opts={}, &block)
|
10
|
+
instrument(action: opts[:method], &block)
|
11
11
|
end
|
12
12
|
|
13
|
-
def client_streamer(
|
14
|
-
instrument(action: method, &block)
|
13
|
+
def client_streamer(opts={}, &block)
|
14
|
+
instrument(action: opts[:method], &block)
|
15
15
|
end
|
16
16
|
|
17
|
-
def server_streamer(
|
18
|
-
instrument(action: method, &block)
|
17
|
+
def server_streamer(opts={}, &block)
|
18
|
+
instrument(action: opts[:method], &block)
|
19
19
|
end
|
20
20
|
|
21
|
-
def bidi_streamer(
|
22
|
-
instrument(action: method, &block)
|
21
|
+
def bidi_streamer(opts={}, &block)
|
22
|
+
instrument(action: opts[:method], &block)
|
23
23
|
end
|
24
24
|
|
25
25
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpcx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Black Square Media Ltd
|
@@ -131,7 +131,7 @@ files:
|
|
131
131
|
- lib/grpcx/server/interceptors/rescue.rb
|
132
132
|
- spec/lib/server_spec.rb
|
133
133
|
- spec/spec_helper.rb
|
134
|
-
homepage: https://
|
134
|
+
homepage: https://github.com/bsm/grpcx
|
135
135
|
licenses:
|
136
136
|
- MIT
|
137
137
|
metadata: {}
|