You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Use this checklist to make sure your PR is ready for merge. You may
delete any sections you don't need. -->
## DESCRIBE YOUR PR
To be merged as soon as 6.0 is released.
getsentry/sentry-ruby#2352
## IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE -->
- [x] Other deadline: <!-- ENTER DATE HERE -->
- [ ] None: Not urgent, can wait up to 1 week+
## PRE-MERGE CHECKLIST
*Make sure you've checked the following before merging your changes:*
- [x] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)
This turns debug mode on or off. When enabled, SDK errors will be logged with backtrace.
28
-
If you want more output, use `config.logger.level`. `debug` only works for attaching backtraces to the messages.
28
+
If you want more output, use `config.sdk_logger.level`. `debug` only works for attaching backtraces to the messages.
29
29
30
30
</SdkOption>
31
31
32
-
<SdkOptionname="logger"type="Sentry::Logger">
32
+
<SdkOptionname="sdk_logger"type="Sentry::Logger">
33
33
34
34
The logger used by Sentry. The default for Rails is `Rails.logger`, otherwise it's `Sentry::Logger`. Make sure to change the logger level if you need debug output. **We don't recommend doing this in production unless absolutely necessary.**
35
35
36
36
```ruby
37
-
config.logger=Sentry::Logger.new(STDOUT)
38
-
config.logger.level = ::Logger::DEBUG# defaults to INFO
37
+
config.sdk_logger=Sentry::Logger.new(STDOUT)
38
+
config.sdk_logger.level = ::Logger::DEBUG# defaults to INFO
Whether to capture local variables from the raised exceptions frame. (In older versions, this was called `capture_exception_frame_locals`.)
100
+
Whether to capture local variables from the raised exceptions frame.
101
101
102
102
</SdkOption>
103
103
@@ -125,7 +125,6 @@ Sentry supports different breadcrumbs loggers in the Ruby SDK:
125
125
-`:http_logger` - Captures requests made with the standard `net/http` library.
126
126
-`:redis_logger` - Captures breadcrumbs from redis operations.
127
127
-`:active_support_logger` - Built on top of [ActiveSupport instrumentation](https://guides.rubyonrails.org/active_support_instrumentation.html) and provides many Rails-specific information.
128
-
-`:monotonic_active_support_logger` - Similar to `:active_support_logger` but breadcrumbs will have monotonic time values. Only available with Rails 6.1+.
129
128
130
129
And you can enable them with the `breadcrumbs_logger` option:
131
130
@@ -164,7 +163,7 @@ Sentry automatically sets the current environment from the environment variables
By default, events will be sent to Sentry in all environments. If you don't want to send events in a specific environment, you can unset the `SENTRY_DSN` variable in that environment.
The instrumenter to use, `:sentry` or `:otel` for [use with OpenTelemetry](../../tracing/instrumentation/opentelemetry).
@@ -326,7 +337,7 @@ The below options can be used to hook the SDK in various ways and customize how
326
337
327
338
<SdkOptionname="before_send"type="lambda | proc">
328
339
329
-
Provides a lambda or proc that's called with an SDK-specific message or error event object, and can return a modified event object, or `nil` to skip reporting the event. This can be used, for instance, for manual PII stripping before sending.
340
+
Provides a lambda or proc that's called with a message or error event object, and can return a modified event object, or `nil` to skip reporting the event. This can be used, for instance, for manual PII stripping before sending.
330
341
331
342
By the time `before_send` is executed, all scope data has already been applied to the event. Further modification of the scope won't have any effect.
332
343
@@ -336,7 +347,7 @@ By the time `before_send` is executed, all scope data has already been applied t
Provides a lambda or proc that's called with an SDK-specific transaction event object, and can return a modified transaction event object, or `nil` to skip reporting the event. One way this might be used is for manual PII stripping before sending.
350
+
Provides a lambda or proc that's called with a transaction event object, and can return a modified transaction event object, or `nil` to skip reporting the event. One way this might be used is for manual PII stripping before sending.
Provides a lambda or proc that's called with a check-in event object, and can return a modified check-in event object, or `nil` to skip reporting the event.
If you want to clean up the backtrace of an exception before it's sent to Sentry, you can specify a callback with `backtrace_cleanup_callback`, for example:
@@ -484,6 +503,14 @@ A number between `0` and `1`, controlling the percentage chance a given sampled
0 commit comments