sentry-ruby-core 5.3.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/lib/sentry/configuration.rb +10 -0
- data/lib/sentry/version.rb +1 -1
- data/lib/sentry-ruby.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d28ef3b3cde342fa483586f73025f48b729b9ee09bd9835589ffa2d2d62717ff
|
|
4
|
+
data.tar.gz: 46eb28e37a955cfa60ed8ab517ab4398a89a310af7897d1543dd817e010f125e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 693b0955dc1dacb5ea6c087e0ec2d331f51c995dd8b2adfa886fbe9b7af33c1f0a0248e750b02a85899808c34cab688cffacf6951c29e06b60336dcffc354777
|
|
7
|
+
data.tar.gz: 92b40e64205151ef7f6d530ae27fe179678824dd7f5f4cf567a8671385df076f24b1576df5e7edfb5921a230605cb447349724872f791b8b84eb6d13c050413c
|
data/README.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://sentry.io" target="_blank"
|
|
3
|
-
<
|
|
2
|
+
<a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
|
|
3
|
+
<picture>
|
|
4
|
+
<source srcset="https://sentry-brand.storage.googleapis.com/sentry-logo-white.png" media="(prefers-color-scheme: dark)" />
|
|
5
|
+
<source srcset="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" />
|
|
6
|
+
<img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" alt="Sentry" width="280">
|
|
7
|
+
</picture>
|
|
4
8
|
</a>
|
|
5
|
-
<br />
|
|
6
9
|
</p>
|
|
7
10
|
|
|
8
11
|
_Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us [<kbd>**Check out our open positions**</kbd>](https://sentry.io/careers/)_
|
|
@@ -52,13 +55,11 @@ gem "sentry-resque"
|
|
|
52
55
|
|
|
53
56
|
### Configuration
|
|
54
57
|
|
|
55
|
-
You
|
|
56
|
-
|
|
58
|
+
You need to use Sentry.init to initialize and configure your SDK:
|
|
57
59
|
```ruby
|
|
58
60
|
Sentry.init do |config|
|
|
59
61
|
config.dsn = "MY_DSN"
|
|
60
62
|
end
|
|
61
|
-
|
|
62
63
|
```
|
|
63
64
|
|
|
64
65
|
To learn more about available configuration options, please visit the [official documentation](https://docs.sentry.io/platforms/ruby/configuration/options/).
|
data/lib/sentry/configuration.rb
CHANGED
|
@@ -290,6 +290,16 @@ module Sentry
|
|
|
290
290
|
def async=(value)
|
|
291
291
|
check_callable!("async", value)
|
|
292
292
|
|
|
293
|
+
log_warn <<~MSG
|
|
294
|
+
|
|
295
|
+
sentry-ruby now sends events asynchronously by default with its background worker (supported since 4.1.0).
|
|
296
|
+
The `config.async` callback has become redundant while continuing to cause issues.
|
|
297
|
+
(The problems of `async` are detailed in https://github.com/getsentry/sentry-ruby/issues/1522)
|
|
298
|
+
|
|
299
|
+
Therefore, we encourage you to remove it and let the background worker take care of async job sending.
|
|
300
|
+
It's deprecation is planned in the next major release (6.0), which is scheduled around the 3rd quarter of 2022.
|
|
301
|
+
MSG
|
|
302
|
+
|
|
293
303
|
@async = value
|
|
294
304
|
end
|
|
295
305
|
|
data/lib/sentry/version.rb
CHANGED
data/lib/sentry-ruby.rb
CHANGED
|
@@ -399,9 +399,7 @@ module Sentry
|
|
|
399
399
|
# end
|
|
400
400
|
#
|
|
401
401
|
def with_child_span(**attributes, &block)
|
|
402
|
-
current_span = get_current_scope.get_span
|
|
403
|
-
|
|
404
|
-
if current_span
|
|
402
|
+
if Sentry.initialized? && current_span = get_current_scope.get_span
|
|
405
403
|
result = nil
|
|
406
404
|
|
|
407
405
|
begin
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sentry-ruby-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.3.
|
|
4
|
+
version: 5.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sentry Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-05-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|