sentry-rails 4.1.3 → 4.1.4
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/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/sentry/rails/breadcrumb/active_support_logger.rb +7 -0
- data/lib/sentry/rails/rescued_exception_interceptor.rb +2 -0
- data/lib/sentry/rails/tracing/action_controller_subscriber.rb +3 -0
- data/lib/sentry/rails/version.rb +1 -1
- 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: b6d5b6ddf199bc5669f9e6808ad6e2b3673280224556627a11f5ce8b528cf322
|
4
|
+
data.tar.gz: 701956e40f0024ed399289489c7d0e3caa4554266b1912a708502ded4a1facb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8869449bc60e1eca6da3e2f9c08b638137ad51eeeb8776a534af4649bf31d7af2321bd37a104dc86efb1a364cd8744890ce980b4405af0c815030fb0e3e1e25b
|
7
|
+
data.tar.gz: 426b79fa8bec147d34d3c0ef7c52ae7db4279df0d6b094858c20f63eb77f3e5b732ad42a280d059b00ce598d140fe0df476741df5b98dc3edb3d28473828d01a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 4.1.4
|
4
|
+
|
5
|
+
- Don't include headers & request info in tracing span or breadcrumb [#1199](https://github.com/getsentry/sentry-ruby/pull/1199)
|
6
|
+
- Don't run RescuedExceptionInterceptor unless Sentry is initialized [#1204](https://github.com/getsentry/sentry-ruby/pull/1204)
|
7
|
+
|
3
8
|
## 4.1.3
|
4
9
|
|
5
10
|
- Remove DelayedJobAdapter from ignored list [#1179](https://github.com/getsentry/sentry-ruby/pull/1179)
|
data/README.md
CHANGED
@@ -44,7 +44,7 @@ Sentry.init do |config|
|
|
44
44
|
# the default value is true
|
45
45
|
config.rails.report_rescued_exceptions = true
|
46
46
|
|
47
|
-
# this gem also provides a new breadcrumb logger that accepts
|
47
|
+
# this gem also provides a new breadcrumb logger that accepts instrumentations from ActiveSupport
|
48
48
|
# it's not activated by default, but you can enable it with
|
49
49
|
config.breadcrumbs_logger = [:active_support_logger]
|
50
50
|
end
|
@@ -4,6 +4,13 @@ module Sentry
|
|
4
4
|
module ActiveSupportLogger
|
5
5
|
class << self
|
6
6
|
def add(name, started, _finished, _unique_id, data)
|
7
|
+
if data.is_a?(Hash) && (data.key(:request) || data.key?(:headers))
|
8
|
+
# we should only mutate the copy of the data
|
9
|
+
data = data.dup
|
10
|
+
data.delete(:request)
|
11
|
+
data.delete(:headers)
|
12
|
+
end
|
13
|
+
|
7
14
|
crumb = Sentry::Breadcrumb.new(
|
8
15
|
data: data,
|
9
16
|
category: name,
|
@@ -15,6 +15,9 @@ module Sentry
|
|
15
15
|
description: "#{controller}##{action}",
|
16
16
|
duration: duration
|
17
17
|
) do |span|
|
18
|
+
payload = payload.dup
|
19
|
+
payload.delete(:headers)
|
20
|
+
payload.delete(:request)
|
18
21
|
span.set_data(:payload, payload)
|
19
22
|
span.set_http_status(payload[:status])
|
20
23
|
end
|
data/lib/sentry/rails/version.rb
CHANGED
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.1.
|
4
|
+
version: 4.1.4
|
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-01-
|
11
|
+
date: 2021-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|