sentry-raven 2.6.2 → 2.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +7 -0
- data/docs/config.rst +9 -1
- data/docs/usage.rst +16 -0
- data/lib/raven/configuration.rb +1 -1
- data/lib/raven/event.rb +9 -1
- data/lib/raven/integrations/rack.rb +2 -0
- data/lib/raven/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29f898ece848c6fd9bf471b62dbfb990c41f30a1
|
4
|
+
data.tar.gz: d290053185690206a198fb29ace1e6443534be7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eb80ee3da6a36d2e8304dfcbf8f5d339340d401543d4c8fd9ae9340c923e49a889e6d0266c55bbc316183c882b595fba05c52e8422c560d36d4a2c2f049784a
|
7
|
+
data.tar.gz: a4489464ff92761b746fd3b6be2ef384eb06a2d365ccf6e386e5feb46ca25fcb92ed8e4970e9aef5e684cf4b56d61f83ea6ca8dbacf344ece036227c0145425e
|
data/changelog.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
2.6.3
|
2
|
+
-----
|
3
|
+
|
4
|
+
* BUGFIX: Fixed typo in the Heroku warning [@greysteil, #728]
|
5
|
+
* BUGFIX: Swallow IOErrors when reading the Rack request body [@nateberkopec]
|
6
|
+
* BUGFIX: Fix invalid UTF-8/circular references when using async [@nateberkopec, #730]
|
7
|
+
|
1
8
|
2.6.2
|
2
9
|
-----
|
3
10
|
|
data/docs/config.rst
CHANGED
@@ -39,7 +39,7 @@ Optional settings
|
|
39
39
|
|
40
40
|
class SentryJob < ActiveJob::Base
|
41
41
|
queue_as :default
|
42
|
-
|
42
|
+
|
43
43
|
# Important! Otherwise, we can get caught in an infinite loop.
|
44
44
|
rescue_from(ActiveJob::DeserializationError) { |e| Rails.logger.error e }
|
45
45
|
|
@@ -118,6 +118,14 @@ Optional settings
|
|
118
118
|
|
119
119
|
The client scrubs the HTTP "Authorization" header of requests before sending them to Sentry, to prevent sensitive credentials from being sent. You can specify additional HTTP headers to ignore:
|
120
120
|
|
121
|
+
You can also provide regex-like strings to the sanitizer:
|
122
|
+
|
123
|
+
.. code-block:: ruby
|
124
|
+
|
125
|
+
config.sanitize_fields = ["my_field", "foo(.*)?bar]
|
126
|
+
|
127
|
+
It's also possible to remove HTTP header values which match a list:
|
128
|
+
|
121
129
|
.. code-block:: ruby
|
122
130
|
|
123
131
|
config.sanitize_http_headers = ["Via", "Referer", "User-Agent", "Server", "From"]
|
data/docs/usage.rst
CHANGED
@@ -158,3 +158,19 @@ can be supplied:
|
|
158
158
|
'email' => 'clever-girl'
|
159
159
|
}
|
160
160
|
}
|
161
|
+
|
162
|
+
Many Instances
|
163
|
+
--------------
|
164
|
+
|
165
|
+
It is possible to have many different instances and configurations of the Raven
|
166
|
+
client running at once. See the delegation pattern in ``base.rb`` for more
|
167
|
+
information about how the ``Raven`` module delegates calls to the "main" instance.
|
168
|
+
|
169
|
+
.. code-block:: ruby
|
170
|
+
|
171
|
+
Raven.capture # capture, sent to the main instance
|
172
|
+
|
173
|
+
# You can create as many instances as you like. Provide a context and config.
|
174
|
+
instance = Raven::Instance.new(Raven::Context.new, Raven::Configuration.new)
|
175
|
+
|
176
|
+
Currently, all integrations use the "main" instance.
|
data/lib/raven/configuration.rb
CHANGED
@@ -318,7 +318,7 @@ module Raven
|
|
318
318
|
end
|
319
319
|
|
320
320
|
def heroku_dyno_metadata_message
|
321
|
-
"You are running on Heroku but haven't enabled Dyno Metadata. For Sentry's"\
|
321
|
+
"You are running on Heroku but haven't enabled Dyno Metadata. For Sentry's "\
|
322
322
|
"release detection to work correctly, please run `heroku labs:enable runtime-dyno-metadata`"
|
323
323
|
end
|
324
324
|
|
data/lib/raven/event.rb
CHANGED
@@ -279,7 +279,8 @@ module Raven
|
|
279
279
|
end
|
280
280
|
|
281
281
|
def to_json_compatible
|
282
|
-
|
282
|
+
cleaned_hash = async_json_processors.reduce(to_hash) { |a, e| e.process(a) }
|
283
|
+
JSON.parse(JSON.generate(cleaned_hash))
|
283
284
|
end
|
284
285
|
|
285
286
|
# For cross-language compat
|
@@ -302,5 +303,12 @@ module Raven
|
|
302
303
|
:forwarded_for => context.rack_env["HTTP_X_FORWARDED_FOR"]
|
303
304
|
).calculate_ip
|
304
305
|
end
|
306
|
+
|
307
|
+
def async_json_processors
|
308
|
+
[
|
309
|
+
Raven::Processor::RemoveCircularReferences,
|
310
|
+
Raven::Processor::UTF8Conversion
|
311
|
+
].map { |v| v.new(self) }
|
312
|
+
end
|
305
313
|
end
|
306
314
|
end
|
data/lib/raven/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-raven
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|