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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65e71c8c9518a483f581e8c903ce36fa216fd964
4
- data.tar.gz: 693bab7ca8a2189697b0802e2919ce9ebf6a81e8
3
+ metadata.gz: b7390634901f7ed74144c6790bc71af190f24c8d
4
+ data.tar.gz: 8741c95aadfaa77c821e5543fe6e831a5d8d0b9d
5
5
  SHA512:
6
- metadata.gz: a6050bfc0ea85e521707640550eee61cb147f395e7b6610abb1774faf2bdf2009557c93057e886c65f565192c7a46aa5b0ef54b315c8d8711f62d91bb5905157
7
- data.tar.gz: d9a50a872883792a85e8cbe7987a4f9e2ace192b09b9474c388d42bb204869f326e8f46bedd41078d0505b1c7d3d0fc40a1dc9ab9fd243743e44e5af61eaa17e
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 = job.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
@@ -1,3 +1,3 @@
1
1
  module ScoutApm
2
- VERSION = "3.0.0.pre4"
2
+ VERSION = "3.0.0.pre5"
3
3
  end
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.pre4
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-10 00:00:00.000000000 Z
12
+ date: 2016-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest