raygun-apm-sidekiq 1.0.20 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/lib/raygun/apm/sidekiq/hook.rb +10 -1
- data/lib/raygun/apm/sidekiq/version.rb +1 -1
- data/lib/raygun/apm/sidekiq.rb +7 -0
- data/raygun-apm-sidekiq.gemspec +5 -5
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 983d18c44dad05861403a92a3bdea42df25f39e312cd4a441137a2cdee76c1f2
|
4
|
+
data.tar.gz: 8f706e3487836cd6a8953f5c6c8fa436fafba79ff9297ede0af20d85db9c6b95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e5822a24b86b23059fceb1c8053f47b218f35cef606cf748b6eb747a98ad55f6c684292912bd72e51e9165d5ae6334637e94f335d5dec860814d354edbb1140
|
7
|
+
data.tar.gz: f59cd1281bea3d057668cf710576438e5f8f17ac3621b646521534430bd81ba1d1d9d85a84ca87886a5a347f73772b5c4eb53d9b62b2fe9ce48831a023c0e12a
|
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,7 +9,7 @@ module Raygun
|
|
9
9
|
proc {tracer.process_ended}
|
10
10
|
end
|
11
11
|
|
12
|
-
def initialize(
|
12
|
+
def initialize(*args)
|
13
13
|
super
|
14
14
|
@mutex = Mutex.new
|
15
15
|
@mutex.synchronize do
|
@@ -31,6 +31,7 @@ module Raygun
|
|
31
31
|
super
|
32
32
|
fake_http_in_handler(@tracer, @worker_started, job_hash, queue, nil) if @tracer
|
33
33
|
rescue => e
|
34
|
+
crash_report_exception(e)
|
34
35
|
fake_http_in_handler(@tracer, @worker_started, job_hash, queue, e) if @tracer
|
35
36
|
exception = e
|
36
37
|
end
|
@@ -72,6 +73,7 @@ module Raygun
|
|
72
73
|
# Let the GC clean up the sink thread through the finalizer below
|
73
74
|
@tracer = nil
|
74
75
|
Raygun::Apm::Tracer.instance = nil
|
76
|
+
crash_report_exception(exception)
|
75
77
|
raise(exception) unless (Raygun::Apm::FatalError === exception)
|
76
78
|
end
|
77
79
|
|
@@ -133,6 +135,13 @@ module Raygun
|
|
133
135
|
def Ruby_APM_profiler_trace
|
134
136
|
yield
|
135
137
|
end
|
138
|
+
|
139
|
+
def crash_report_exception(exception, env = {})
|
140
|
+
if Raygun::Apm::Sidekiq.raygun4ruby?
|
141
|
+
env.merge!(correlation_id: exception.instance_variable_get(:@__raygun_correlation_id))
|
142
|
+
Raygun.track_exception(exception, env)
|
143
|
+
end
|
144
|
+
end
|
136
145
|
end
|
137
146
|
end
|
138
147
|
end
|
data/lib/raygun/apm/sidekiq.rb
CHANGED
@@ -10,6 +10,13 @@ module Raygun
|
|
10
10
|
+Raygun::Apm::Sidekiq::Hook#Ruby_APM_profiler_trace
|
11
11
|
}
|
12
12
|
|
13
|
+
def self.raygun4ruby?(configured = true)
|
14
|
+
if configured
|
15
|
+
defined?(Raygun) && Raygun.respond_to?(:configured?) && Raygun.configured?
|
16
|
+
else
|
17
|
+
defined?(Raygun) && Raygun.respond_to?(:configured?)
|
18
|
+
end
|
19
|
+
end
|
13
20
|
end
|
14
21
|
end
|
15
22
|
end
|
data/raygun-apm-sidekiq.gemspec
CHANGED
@@ -6,19 +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
|
10
|
-
spec.email = ["
|
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
|
-
|
14
|
+
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.files = Dir['README.rdoc', 'raygun-apm-sidekiq.gemspec', 'lib/**/*', 'bin/**/*']
|
16
|
+
spec.files = Dir['README.rdoc', 'LICENSE', 'raygun-apm-sidekiq.gemspec', 'lib/**/*', 'bin/**/*']
|
17
17
|
spec.bindir = "exe"
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "raygun-apm"
|
21
|
+
spec.add_dependency "raygun-apm"
|
22
22
|
spec.add_development_dependency "bundler"
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
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.
|
4
|
+
version: 1.1.2
|
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:
|
11
|
+
date: 2021-12-13 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:
|
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:
|
26
|
+
version: '0'
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
28
|
name: bundler
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,12 +68,13 @@ 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:
|
77
|
+
- LICENSE
|
78
78
|
- README.rdoc
|
79
79
|
- bin/console
|
80
80
|
- bin/setup
|
@@ -84,7 +84,8 @@ files:
|
|
84
84
|
- lib/raygun/apm/sidekiq/version.rb
|
85
85
|
- raygun-apm-sidekiq.gemspec
|
86
86
|
homepage: https://raygun.com/platform/apm
|
87
|
-
licenses:
|
87
|
+
licenses:
|
88
|
+
- MIT
|
88
89
|
metadata: {}
|
89
90
|
post_install_message:
|
90
91
|
rdoc_options: []
|