raygun-apm-sidekiq 1.0.16 → 1.0.21

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: e8b45cd686413df0cefdc5546fbf08a31e36060b7393e828bd83c19239ad43c0
4
- data.tar.gz: 1b3662d09b9d64a04539c9f5fceba35d73c34ec1847c492688170ee66de3ff85
3
+ metadata.gz: 2e41645a5376a6598004df9f071e586eb4ac5c0238558d1eedbaee6893b2a5b1
4
+ data.tar.gz: 851f549c3c7e9ecce675a2b56e1ffd0a32c711549d5b74c59d4e7feb3f711f75
5
5
  SHA512:
6
- metadata.gz: dce241ad3576c65f8943d666b22db69b715fb1baa898a44f68ea16a03cb8e2ab35615cba1c47b61f5e05072a5a06f9458c871c3cede06683b88c383f51f49677
7
- data.tar.gz: 2263c613a2deefeab136f326cf5a7cc2500975a587a4be6f9754fdc21688730312fcdece83c66c242cb827c90085539c1e28d502eee4f7cbe35664b73f668b1a
6
+ metadata.gz: 4e8ef2f24f187c0f1633869b4a976b79a582865554ec588bbfb25f728478f5828b79f9cd4a8d7ae2a4b65553adbaa8332291cfe7acf4c184f1c3c593c9ff3bde
7
+ data.tar.gz: 02245eeb72996eed8ffe6ffb8344ba932bd1b0aff9e9295c505da99d593bcd4999b504efe829b810d5a2f3e0d15b681462e88644c0a8447d37008a82ff60d25d
@@ -7,7 +7,7 @@ module Raygun
7
7
 
8
8
  BLACKLIST = %w{
9
9
  Sidekiq
10
- +Raygun::Apm::Sidekiq::Hook::Ruby_APM_profiler_trace
10
+ +Raygun::Apm::Sidekiq::Hook#Ruby_APM_profiler_trace
11
11
  }
12
12
 
13
13
  end
@@ -9,9 +9,12 @@ module Raygun
9
9
  proc {tracer.process_ended}
10
10
  end
11
11
 
12
- def initialize(mgr)
12
+ def initialize(*args)
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)
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Sidekiq
4
- VERSION = "1.0.16"
4
+ VERSION = "1.0.21"
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.16
4
+ version: 1.0.21
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-06-07 00:00:00.000000000 Z
12
+ date: 2021-01-31 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,28 +0,0 @@
1
- = Changelog
2
-
3
- == 1.0.16 (June 8, 2020)
4
-
5
- * Integrate exception correlation with rayrun4ruby
6
- * Move raygun4ruby whitelisting and blacklisting out to profiler core
7
-
8
- == 1.0.15 (May 17, 2020)
9
-
10
- * Remove the Tracer#process_started callback (set on begin transaction command now)
11
-
12
- == 1.0.14 (May 15, 2020)
13
-
14
- * Introduce support for Redis as client adapter
15
- * Prefer hooking Sidekiq::Processor as Middleware does not wrap enough to intercept the raygun4ruby error handler as an HTTP OUT event
16
-
17
- == 1.0.13 (April 2, 2020)
18
-
19
- * Prefer hooking Sidekiq::Processor as Middleware does not wrap enough to intercept the raygun4ruby error handler as an HTTP OUT event
20
-
21
- == 1.0.12 (March 25, 2020)
22
-
23
- * Do not cache PID on HTTP OUT and SQL events
24
-
25
- == 1.0.11 (March 15, 2020)
26
-
27
- * Emit the happy path and error state HTTP IN events for Sidekiq jobs WITHIN the entrypoint function for the agent to pick it up
28
- * 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.16)
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.43-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