scout_apm 3.0.0.pre4 → 3.0.0.pre5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +4 -4
- data/lib/scout_apm/background_job_integrations/delayed_job.rb +11 -1
- data/lib/scout_apm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7390634901f7ed74144c6790bc71af190f24c8d
|
4
|
+
data.tar.gz: 8741c95aadfaa77c821e5543fe6e831a5d8d0b9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef79c08136c8238d7c284a825e85a6dfd2b2d19af8b573582b0e6ec93a23dfc00789d39555380c59d152e4344caf3f05957a43d06cf743f14a8c1609ac6a0623
|
7
|
+
data.tar.gz: d735090eea242c1bc02591c1068ad04aa839c776245b97e733801b54f94be98b434c1729dbf6fd3c70eabcbad917471d916fa983ddd15ceb6422088ba58ec7f7
|
data/CHANGELOG.markdown
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
# Dev
|
2
|
-
|
3
|
-
* Adds Git revision detection, which is reported on app load and associated with transaction traces
|
4
|
-
|
5
1
|
# 3.0.0
|
6
2
|
|
7
3
|
* ScoutProf BETA
|
8
4
|
|
5
|
+
# 2.1.16
|
6
|
+
|
7
|
+
* Extract the name correctly for DelayedJob workers run via ActiveJob
|
8
|
+
|
9
9
|
# 2.1.15
|
10
10
|
|
11
11
|
* Limit memory usage for very long running requests.
|
@@ -1,6 +1,8 @@
|
|
1
1
|
module ScoutApm
|
2
2
|
module BackgroundJobIntegrations
|
3
3
|
class DelayedJob
|
4
|
+
ACTIVE_JOB_KLASS = 'ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper'.freeze
|
5
|
+
|
4
6
|
attr_reader :logger
|
5
7
|
|
6
8
|
def name
|
@@ -23,7 +25,15 @@ module ScoutApm
|
|
23
25
|
lifecycle.around(:invoke_job) do |job, *args, &block|
|
24
26
|
ScoutApm::Agent.instance.start_background_worker unless ScoutApm::Agent.instance.background_worker_running?
|
25
27
|
|
26
|
-
name =
|
28
|
+
name = begin
|
29
|
+
if job.payload_object.class.to_s == ACTIVE_JOB_KLASS
|
30
|
+
job.payload_object.job_data["job_class"]
|
31
|
+
else
|
32
|
+
job.name
|
33
|
+
end
|
34
|
+
rescue
|
35
|
+
job.name
|
36
|
+
end
|
27
37
|
queue = job.queue || "default"
|
28
38
|
|
29
39
|
req = ScoutApm::RequestManager.lookup
|
data/lib/scout_apm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.pre5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Haynes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|