sentry-rails 4.3.1 → 4.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ecadcb6d10a87fe8d032001ac1b970da69e7037f4b7a6d7378992ae2b232258
4
- data.tar.gz: 2a517ac4894d2dfdbe9e626fee8bfe11f5b984204598c22f082daeac9c4e7995
3
+ metadata.gz: 71d4bb2da0b6b6702dd19f4af1587d708d1cd74dabff09bb1419544851de273b
4
+ data.tar.gz: 306860e508e67cd7ba564dac54111c9bfac796ff6e7a96092cdba22e03c4336b
5
5
  SHA512:
6
- metadata.gz: f5ab30a925984910229746fc86f03f217198f3eb28fae3f0348c2fa876c227558aab0bdde1aa572c88f8f9b5452c317089851bd5de6859c2f249756d611a0015
7
- data.tar.gz: b4b59011dd1d8142453c2dc5794b6cc6a8b6c350afd0f41109f85ca00390b4a19f7131874daae57cfc458ad14d0ff2bea78cbd34a5a3dff0dcf25bb92e4a139b
6
+ metadata.gz: 5ef3910fbe7c2ab373e0642949d7d82babb83e0569cdd7481e423346fa89b26b26426d9175137e0293be99152c27489978ac4c02d29539de5ef0e386f4b31bcc
7
+ data.tar.gz: b36840b16c8c46ddc1e8d5036135a250f5d2f391cbc94916b85dda206fd17b68194192625d0c4a89e86ae0ef8e5ba8288083e897eb533bfa8c7f5303650de04b
data/CHANGELOG.md CHANGED
@@ -1,9 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.3.2
4
+
5
+ - Avoid recording SendEventJob's transaction [#1351](https://github.com/getsentry/sentry-ruby/pull/1351)
6
+ - Fixes [#1348](https://github.com/getsentry/sentry-ruby/issues/1348)
7
+
3
8
  ## 4.3.1
4
9
 
5
10
  - Only apply background worker patch if ActiveRecord is loaded [#1350](https://github.com/getsentry/sentry-ruby/pull/1350)
6
11
  - Fixes [#1342](https://github.com/getsentry/sentry-ruby/issues/1342) and [#1346](https://github.com/getsentry/sentry-ruby/issues/1346)
12
+ - Avoid recording SendEventJob's transaction [#1351](https://github.com/getsentry/sentry-ruby/pull/1351)
13
+ - Fixes [#1348](https://github.com/getsentry/sentry-ruby/issues/1348)
7
14
 
8
15
  ## 4.3.0
9
16
 
@@ -22,6 +22,11 @@ if defined?(ActiveJob)
22
22
  end
23
23
 
24
24
  def perform(event, hint = {})
25
+ # users don't need the tracing result of this job
26
+ if transaction = Sentry.get_current_scope.span
27
+ transaction.instance_variable_set(:@sampled, false)
28
+ end
29
+
25
30
  Sentry.send_event(event, hint)
26
31
  end
27
32
  end
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "4.3.1"
3
+ VERSION = "4.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-19 00:00:00.000000000 Z
11
+ date: 2021-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails