raygun-apm-sidekiq 1.0.15 → 1.0.20

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
  SHA256:
3
- metadata.gz: 581ec769754c0244a88fb3f491dd4accc330f2c7e79bbe2edf163db526945730
4
- data.tar.gz: 8bb6329650b61038fda303a779165683adeb00281c103f2edd9778dcb837fab3
3
+ metadata.gz: '0896bf35bf8b56b1407ef6484db92fc5ac06498b963a1d1d7103db37b3a1e5f6'
4
+ data.tar.gz: b616b0444decd6c9ee1e2073604d70e850a3683736c6bb270b2b85bf8fac8e26
5
5
  SHA512:
6
- metadata.gz: e18f9af5fa7d6bcbf1f59d0d60cff3904ad1a8079b19a5133bbbacfc9f60df9b38ea849ccbacb169c38664973f541c51151a7ca3ce60237bb25eb7ff4750c150
7
- data.tar.gz: 7833146aa6710d8fc118dcd80349caa3eff5c7007f24616621c059f51204335e5e86333813b45841455ba8ca12255aa74f70c026e28a83d77cc082a2e00d3307
6
+ metadata.gz: 9a3e20329d6fb786d352a11f2b7d79d2087164c8335de9f31c62f0206822de0591e26f740e2595bcebd34596ecaa7c7fba20f02f736aa548f5e8dca5aa18eac8
7
+ data.tar.gz: 00032144a7457b63e12edac3a738c736fb016e3969bf8c10ea869996fcc7cf0c740d1aaa5cbebe0d72bb18c6362fc9b995da8fec3fd3c7025e75d092d05bc787
@@ -7,12 +7,7 @@ module Raygun
7
7
 
8
8
  BLACKLIST = %w{
9
9
  Sidekiq
10
- Redis
11
- Raygun::Breadcrumbs
12
- Raygun::Configuration
13
- Raygun::config
14
- +Raygun::Apm::Sidekiq::Hook::Ruby_APM_profiler_trace
15
- +Raygun::track_exception
10
+ +Raygun::Apm::Sidekiq::Hook#Ruby_APM_profiler_trace
16
11
  }
17
12
 
18
13
  end
@@ -11,7 +11,10 @@ module Raygun
11
11
 
12
12
  def initialize(mgr)
13
13
  super
14
- @tracer = Raygun::Apm::Tracer.instance || init_tracer
14
+ @mutex = Mutex.new
15
+ @mutex.synchronize do
16
+ @tracer = Raygun::Apm::Tracer.instance || init_tracer
17
+ end
15
18
  end
16
19
 
17
20
  def process(work)
@@ -33,7 +36,10 @@ module Raygun
33
36
  end
34
37
  end
35
38
  # Can be nil if we had a fatal error
36
- @tracer.end_trace if @tracer
39
+ if @tracer
40
+ @tracer.diagnostics if ENV['PROTON_DIAGNOSTICS']
41
+ @tracer.end_trace
42
+ end
37
43
  raise exception if exception
38
44
  rescue Raygun::Apm::FatalError => e
39
45
  raygun_shutdown_handler(e)
@@ -9,6 +9,11 @@ module Raygun
9
9
  # Explictly enable instrumenting HTTP until a good control API is figured out
10
10
  require "raygun/apm/hooks/net_http"
11
11
  require "raygun/apm/hooks/redis" if defined?(Redis::Client)
12
+ # Attempt to explicitly require the raygun4ruby sidekiq integration
13
+ begin
14
+ require "raygun/sidekiq"
15
+ rescue LoadError
16
+ end
12
17
  end
13
18
  end
14
19
  end
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Sidekiq
4
- VERSION = "1.0.15"
4
+ VERSION = "1.0.20"
5
5
  end
6
6
  end
7
7
  end
@@ -13,14 +13,12 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://raygun.com/platform/apm"
14
14
  #spec.license = "MIT"
15
15
 
16
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
17
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- end
16
+ spec.files = Dir['README.rdoc', 'raygun-apm-sidekiq.gemspec', 'lib/**/*', 'bin/**/*']
19
17
  spec.bindir = "exe"
20
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
19
  spec.require_paths = ["lib"]
22
20
 
23
- spec.add_dependency "raygun-apm", "~> 1.0.15"
21
+ spec.add_dependency "raygun-apm", "~> 1.0.44"
24
22
  spec.add_development_dependency "bundler"
25
23
  spec.add_development_dependency "rake", "~> 10.0"
26
24
  spec.add_development_dependency "minitest", "~> 5.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raygun
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-05-17 00:00:00.000000000 Z
12
+ date: 2020-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: raygun-apm
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 1.0.15
20
+ version: 1.0.44
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 1.0.15
27
+ version: 1.0.44
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -75,12 +75,7 @@ executables: []
75
75
  extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
- - ".gitignore"
79
- - CHANGELOG.rdoc
80
- - Gemfile
81
- - Gemfile.lock
82
78
  - README.rdoc
83
- - Rakefile
84
79
  - bin/console
85
80
  - bin/setup
86
81
  - lib/raygun/apm/sidekiq.rb
@@ -106,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
101
  - !ruby/object:Gem::Version
107
102
  version: '0'
108
103
  requirements: []
109
- rubygems_version: 3.0.6
104
+ rubygems_version: 3.1.2
110
105
  signing_key:
111
106
  specification_version: 4
112
107
  summary: Raygun application performance monitoring for Sidekiq
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- *.gem
@@ -1,23 +0,0 @@
1
- = Changelog
2
-
3
- == 1.0.15 (May 17, 2020)
4
-
5
- * Remove the Tracer#process_started callback (set on begin transaction command now)
6
-
7
- == 1.0.14 (May 15, 2020)
8
-
9
- * Introduce support for Redis as client adapter
10
- * Prefer hooking Sidekiq::Processor as Middleware does not wrap enough to intercept the raygun4ruby error handler as an HTTP OUT event
11
-
12
- == 1.0.13 (April 2, 2020)
13
-
14
- * Prefer hooking Sidekiq::Processor as Middleware does not wrap enough to intercept the raygun4ruby error handler as an HTTP OUT event
15
-
16
- == 1.0.12 (March 25, 2020)
17
-
18
- * Do not cache PID on HTTP OUT and SQL events
19
-
20
- == 1.0.11 (March 15, 2020)
21
-
22
- * Emit the happy path and error state HTTP IN events for Sidekiq jobs WITHIN the entrypoint function for the agent to pick it up
23
- * Prefer the singleton interface on the Tracer
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
@@ -1,24 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- raygun-apm-sidekiq (1.0.15)
5
- raygun-apm (~> 1.0.15)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- minitest (5.13.0)
11
- rake (10.5.0)
12
- raygun-apm (1.0.38-universal-darwin)
13
-
14
- PLATFORMS
15
- ruby
16
-
17
- DEPENDENCIES
18
- bundler
19
- minitest (~> 5.0)
20
- rake (~> 10.0)
21
- raygun-apm-sidekiq!
22
-
23
- BUNDLED WITH
24
- 1.17.3
data/Rakefile DELETED
@@ -1,16 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
- require 'rdoc/task'
4
-
5
- RDoc::Task.new do |rdoc|
6
- rdoc.main = "README.rdoc"
7
- rdoc.rdoc_files.include("README.rdoc", "lib/raygun/apm/*.rb", "lib/raygun/apm/sidekiq/*.rb")
8
- end
9
-
10
- Rake::TestTask.new(:test) do |t|
11
- t.libs << "test"
12
- t.libs << "lib"
13
- t.test_files = FileList["test/**/*_test.rb"]
14
- end
15
-
16
- task :default => :test