raygun-apm-sidekiq 1.0.17 → 1.1.0

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: 849fd2aaca44d53e5d5387365898898e08476a1d7da0d04cfde9ef5f99de8ea2
4
- data.tar.gz: d6832067056044c52a85c804f399075253c1707f773d9fe6f2b3b31ea4a66249
3
+ metadata.gz: b8009f547af850699fce5145572da672ce3e31da22264435c5b58c9d7dd0e2a1
4
+ data.tar.gz: 0f2ba61a145143c585242ce8fcff91743dd0325d51a3014bc0c8bc218f20adc0
5
5
  SHA512:
6
- metadata.gz: 30b050b41a163c363f9b30c6a5a2e615c9933c06d6c358c8b081587a55b6bf47b0b6d66236bf8af5b5401844bb5c638207b28d5bee6d43eebfd908d8cc198577
7
- data.tar.gz: 19c8201d2bff549a23990e1851b819ee6e88e76aaed3cb609a8e0757dc3b49c3bea2981b10f25cd0aad4e08b22c10fbae43319658a25b2024f561fe68bc5bafe
6
+ metadata.gz: 32095b0d4fbf7be62815d0ae5f1666173d28a4e55a0f4a75aeedc78acedb7e73f5b2fe3b247f368e1261fbcdb73d575eaa3686b38975659a394c3ab2d56567be
7
+ data.tar.gz: b273df052ed2538ab6928433074ae743f20d941c451ca09994e2a765957a176e8df068c8c4829944463f07c1d0694de996bc328f4dc1bf2b8965b9c7896b15fd
@@ -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.17"
4
+ VERSION = "1.1.0"
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"
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.17
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raygun
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-06-17 00:00:00.000000000 Z
12
+ date: 2021-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: raygun-apm
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 1.0.15
20
+ version: '0'
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: '0'
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
data/CHANGELOG.rdoc DELETED
@@ -1,32 +0,0 @@
1
- = Changelog
2
-
3
- == 1.0.17 (June 17, 2020)
4
-
5
- * Align with rubyesque blacklist syntax support from profiler version 1.0.44
6
-
7
- == 1.0.16 (June 8, 2020)
8
-
9
- * Integrate exception correlation with rayrun4ruby
10
- * Move raygun4ruby whitelisting and blacklisting out to profiler core
11
-
12
- == 1.0.15 (May 17, 2020)
13
-
14
- * Remove the Tracer#process_started callback (set on begin transaction command now)
15
-
16
- == 1.0.14 (May 15, 2020)
17
-
18
- * Introduce support for Redis as client adapter
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.13 (April 2, 2020)
22
-
23
- * Prefer hooking Sidekiq::Processor as Middleware does not wrap enough to intercept the raygun4ruby error handler as an HTTP OUT event
24
-
25
- == 1.0.12 (March 25, 2020)
26
-
27
- * Do not cache PID on HTTP OUT and SQL events
28
-
29
- == 1.0.11 (March 15, 2020)
30
-
31
- * Emit the happy path and error state HTTP IN events for Sidekiq jobs WITHIN the entrypoint function for the agent to pick it up
32
- * Prefer the singleton interface on the Tracer
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
data/Gemfile.lock DELETED
@@ -1,24 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- raygun-apm-sidekiq (1.0.17)
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.44-x86-linux)
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