funktor 0.7.28 → 0.7.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/funktor/middleware/new_relic.rb +3 -1
- data/lib/funktor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc2b8fd9bad2bcfa73c2eb5f7db5da733cb3abaa9fa9fb1d3903d895b8c43c8e
|
4
|
+
data.tar.gz: 782afbe2de67f9fbe35e1a68fae7bf9fa80edd342af1c08cde4ce87535c152a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c985f55a5fe9fd70a7572ae40f45536180f3ab08740a529c5df2cbf0627d5aae12e7a190ee6bfcc5aadedee2b1667d9b986aa85f915e22eda421a314d853159a
|
7
|
+
data.tar.gz: e2d62a4d78348a957e7cb296526fd4010632a96a47aa8874fe84f14093d73dd450c80c9ef3b04519d4f75f7c4db0c435dd26008c3bff7fa9cb26976e16273bfe
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
require '
|
1
|
+
require 'new_relic/agent'
|
2
2
|
module Funktor
|
3
3
|
module Middleware
|
4
4
|
class NewRelic
|
5
5
|
include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
6
6
|
|
7
7
|
def call(job)
|
8
|
+
::NewRelic::Agent.manual_start(:sync_startup => true)
|
8
9
|
trace_args = {
|
9
10
|
:name => 'perform',
|
10
11
|
:class_name => job.worker_class_name_for_metrics,
|
@@ -16,6 +17,7 @@ module Funktor
|
|
16
17
|
::NewRelic::Agent::AttributeFilter::DST_NONE)
|
17
18
|
yield
|
18
19
|
end
|
20
|
+
::NewRelic::Agent.shutdown
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
data/lib/funktor/version.rb
CHANGED