new_relic-starter 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -1
- data/lib/new_relic/starter/version.rb +1 -1
- data/lib/new_relic/starter.rb +4 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9d0585dd4d99434f612e938a9bead0a0051caac72514afdbe358901f2c83c627
|
4
|
+
data.tar.gz: 9f467363fdb14f6e5271d85686970843684fb50c2dd73ce9a5fc62049755e3b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0594710faeb8ce74aef9c8ca3c0d4aff25c2c5011f1aa96a1a4b05c5a60f4f2aad94c3e72ad1b8f5334c63a190052d6e9af12fd8ae03d2c4a82c2d6d7c32108e'
|
7
|
+
data.tar.gz: b16d922c88138453d0842214adcc6289ff8196092eb5e67e378db74cb776f885fc9923bde4c23f138ba17a37ac308ac5d1077885599225a6a7eecf7d3aa122e4
|
data/README.md
CHANGED
@@ -95,7 +95,7 @@ If your Resque worker forks before processing a job, you can add a hook to start
|
|
95
95
|
```ruby
|
96
96
|
starter = NewRelic::Starter.new(NewRelic::Starter::Latch.new("/path/to/latch"))
|
97
97
|
Resque.before_fork do
|
98
|
-
starter.start
|
98
|
+
starter.start(dispatcher: :resque, start_channel_listener: true)
|
99
99
|
end
|
100
100
|
```
|
101
101
|
|
data/lib/new_relic/starter.rb
CHANGED
@@ -24,11 +24,13 @@ module NewRelic
|
|
24
24
|
# Starts the new Relic agent if the agent is not started and the latch is
|
25
25
|
# opened.
|
26
26
|
#
|
27
|
+
# @param options [Hash] The options passed through to
|
28
|
+
# {NewRelic::Agent.manual_start}
|
27
29
|
# @return [Boolean] true if the new Relic agent is started
|
28
|
-
def start
|
30
|
+
def start(options = {})
|
29
31
|
return false if @started || !@latch.opened?
|
30
32
|
|
31
|
-
NewRelic::Agent.manual_start
|
33
|
+
NewRelic::Agent.manual_start(options)
|
32
34
|
@started = true
|
33
35
|
end
|
34
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: new_relic-starter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Satoshi Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: newrelic_rpm
|
@@ -174,8 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
- !ruby/object:Gem::Version
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
|
-
|
178
|
-
rubygems_version: 2.6.14.3
|
177
|
+
rubygems_version: 3.0.1
|
179
178
|
signing_key:
|
180
179
|
specification_version: 4
|
181
180
|
summary: Start the New Relic agent in a running process.
|