docs/config.rst in sentry-raven-2.7.3 vs docs/config.rst in sentry-raven-2.7.4
- old
+ new
@@ -195,10 +195,10 @@
# send 50% of events
config.sample_rate = 0.5
.. describe:: should_capture
- By providing a proc or lambda, you can control what events are captured. Events are passed to the Proc or lambda you provide - returning false will stop the event from sending to Sentry:
+ By providing a proc or lambda, you can control what events are captured. A String (if you've captured a message) or the Exception (if you've captured an exception) will be passed to the Proc or lambda you provide - returning false will stop the event from sending to Sentry:
.. code-block:: ruby
config.should_capture = Proc.new { |e| true unless e.contains_sensitive_info? }