raygun-apm-sidekiq 1.0.18 → 1.1.1

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: 54382f4a9e7c847d1a026bb5bfaaa8bc4b4576d780b48994001c286f6077d072
4
- data.tar.gz: 8dea545d6a83ca9e8b4f0587206799903b66ebd6a8550470df25c195caf5e7a6
3
+ metadata.gz: ec88f19fcc51782f3063a5d4b4ebd8cc227e47679efcf227758b040d00e8a5f9
4
+ data.tar.gz: 3357550d29613e01b4c9b6c60df535c1b2ae7d59361d71416937c56c9287d72e
5
5
  SHA512:
6
- metadata.gz: 8eb4abc49fce7632e1428690ac70c517296354a5e9886b310f06d75569cd8b390f0627c724f3410ad3db7b797fdaf5ee09d3eeec25ba6a9f5ed1b9f57d7252dd
7
- data.tar.gz: da85e668e1b8895db3b2c9bc7e39628f1dc6fc5a6c21bc24912867ed461f21ffc3969b93f96212e707bdbed409161494e7fa494a948b00c00643d1b435525e55
6
+ metadata.gz: ea114b825118fb67482929c2220b45e6ced94513a3ae77c43694679e49652dfb37e4ea437707e2fba2bad0e40b7ae9c7592b85b6740ed5e0112336b34f3b7b06
7
+ data.tar.gz: f7266500e839e27d61abb11e05c210131155ed0b345625474ac094f98d44061aed8631214d06e6a99c7000e0cee715e8ece657cdb1825cb54a3ce2d55c5b6e17
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Raygun Limited
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -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.18"
4
+ VERSION = "1.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -6,21 +6,19 @@ require "raygun/apm/sidekiq/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "raygun-apm-sidekiq"
8
8
  spec.version = Raygun::Apm::Sidekiq::VERSION
9
- spec.authors = ["Raygun", "Erkki Eilonen"]
10
- spec.email = ["support@raygun.com", "info@bearmetal.eu"]
9
+ spec.authors = ["Raygun Limited"]
10
+ spec.email = ["ruby-apm@raygun.io", "support@raygun.com"]
11
11
 
12
12
  spec.summary = %q{Raygun application performance monitoring for Sidekiq}
13
13
  spec.homepage = "https://raygun.com/platform/apm"
14
- #spec.license = "MIT"
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', 'LICENSE', '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.44"
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,30 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - Raygun
8
- - Erkki Eilonen
7
+ - Raygun Limited
9
8
  autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2020-06-17 00:00:00.000000000 Z
11
+ date: 2021-05-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: raygun-apm
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - "~>"
17
+ - - ">="
19
18
  - !ruby/object:Gem::Version
20
- version: 1.0.44
19
+ version: '0'
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
- - - "~>"
24
+ - - ">="
26
25
  - !ruby/object:Gem::Version
27
- version: 1.0.44
26
+ version: '0'
28
27
  - !ruby/object:Gem::Dependency
29
28
  name: bundler
30
29
  requirement: !ruby/object:Gem::Requirement
@@ -69,18 +68,14 @@ dependencies:
69
68
  version: '5.0'
70
69
  description:
71
70
  email:
71
+ - ruby-apm@raygun.io
72
72
  - support@raygun.com
73
- - info@bearmetal.eu
74
73
  executables: []
75
74
  extensions: []
76
75
  extra_rdoc_files: []
77
76
  files:
78
- - ".gitignore"
79
- - CHANGELOG.rdoc
80
- - Gemfile
81
- - Gemfile.lock
77
+ - LICENSE
82
78
  - README.rdoc
83
- - Rakefile
84
79
  - bin/console
85
80
  - bin/setup
86
81
  - lib/raygun/apm/sidekiq.rb
@@ -89,7 +84,8 @@ files:
89
84
  - lib/raygun/apm/sidekiq/version.rb
90
85
  - raygun-apm-sidekiq.gemspec
91
86
  homepage: https://raygun.com/platform/apm
92
- licenses: []
87
+ licenses:
88
+ - MIT
93
89
  metadata: {}
94
90
  post_install_message:
95
91
  rdoc_options: []
@@ -106,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
102
  - !ruby/object:Gem::Version
107
103
  version: '0'
108
104
  requirements: []
109
- rubygems_version: 3.0.6
105
+ rubygems_version: 3.1.2
110
106
  signing_key:
111
107
  specification_version: 4
112
108
  summary: Raygun application performance monitoring for Sidekiq
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- *.gem
data/CHANGELOG.rdoc DELETED
@@ -1,36 +0,0 @@
1
- = Changelog
2
-
3
- == 1.0.18 (June 17, 2020)
4
-
5
- * Force profiler version pin to 1.0.44 in gemspec
6
-
7
- == 1.0.17 (June 17, 2020)
8
-
9
- * Align with rubyesque blacklist syntax support from profiler version 1.0.44
10
-
11
- == 1.0.16 (June 8, 2020)
12
-
13
- * Integrate exception correlation with rayrun4ruby
14
- * Move raygun4ruby whitelisting and blacklisting out to profiler core
15
-
16
- == 1.0.15 (May 17, 2020)
17
-
18
- * Remove the Tracer#process_started callback (set on begin transaction command now)
19
-
20
- == 1.0.14 (May 15, 2020)
21
-
22
- * Introduce support for Redis as client adapter
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.13 (April 2, 2020)
26
-
27
- * Prefer hooking Sidekiq::Processor as Middleware does not wrap enough to intercept the raygun4ruby error handler as an HTTP OUT event
28
-
29
- == 1.0.12 (March 25, 2020)
30
-
31
- * Do not cache PID on HTTP OUT and SQL events
32
-
33
- == 1.0.11 (March 15, 2020)
34
-
35
- * Emit the happy path and error state HTTP IN events for Sidekiq jobs WITHIN the entrypoint function for the agent to pick it up
36
- * 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.18)
5
- raygun-apm (~> 1.0.44)
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