glass_octopus 2.0.0 → 2.1.0
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/glass_octopus.gemspec +1 -1
- data/lib/glass_octopus/middleware/new_relic.rb +6 -1
- data/lib/glass_octopus/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a76c86f04773d07d518c89bb377c122803caea7cf57fc864f2a1a23dfe755024
|
4
|
+
data.tar.gz: fc0f807a5fc32dc6e41e368da42417b7cc36f055bdb78f4c68b861bdf0d9633b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6745d2aca4945d4cfa3b41084bdb8a00af9cfcc4f0c78e662b49b7d6a6be4cda48dbe060d8059b447e6d0633638529e649554f5895283c9930ec68c8917e6929
|
7
|
+
data.tar.gz: c1bf27a0be7757fa3a14bb51ac3c4f877763114e8a158246cef4698243633b2afd476793deafb4c1158a025d32e2efe6ed6f1f8732b303697f92aa4aff19d5fd
|
data/.gitignore
CHANGED
data/glass_octopus.gemspec
CHANGED
@@ -31,6 +31,6 @@ EOF
|
|
31
31
|
spec.add_development_dependency "terminal-notifier-guard", "~> 1.7"
|
32
32
|
spec.add_development_dependency "ruby-kafka", "~> 0.7.0"
|
33
33
|
spec.add_development_dependency "avro_turf", "~> 0.8.0"
|
34
|
-
spec.add_development_dependency "sinatra", "
|
34
|
+
spec.add_development_dependency "sinatra", ">= 2.2.0"
|
35
35
|
spec.add_development_dependency "webmock", "~> 3.3.0"
|
36
36
|
end
|
@@ -20,7 +20,12 @@ module GlassOctopus
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def call(ctx)
|
23
|
-
|
23
|
+
options = @options.merge(params: {
|
24
|
+
topic: ctx.message.topic,
|
25
|
+
partition: ctx.message.partition,
|
26
|
+
offset: ctx.message.offset,
|
27
|
+
})
|
28
|
+
perform_action_with_newrelic_trace(options) do
|
24
29
|
@app.call(ctx)
|
25
30
|
end
|
26
31
|
rescue Exception => ex
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glass_octopus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tamás Michelberger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -126,16 +126,16 @@ dependencies:
|
|
126
126
|
name: sinatra
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.
|
131
|
+
version: 2.2.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 2.
|
138
|
+
version: 2.2.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: webmock
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,8 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
- !ruby/object:Gem::Version
|
212
212
|
version: '0'
|
213
213
|
requirements: []
|
214
|
-
|
215
|
-
rubygems_version: 2.7.6
|
214
|
+
rubygems_version: 3.0.3
|
216
215
|
signing_key:
|
217
216
|
specification_version: 4
|
218
217
|
summary: A Kafka consumer framework. Like Rack but for Kafka.
|