Skip to content

Commit

Permalink
restore include file
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanie-anderson committed Oct 12, 2023
1 parent 549523e commit 41166a7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
```ruby
Sentry.init do |config|
# ...
config.before_send_transaction = lambda do |event, _hint|
# skip unimportant transactions
if event.transaction == "/unimportant/healthcheck/route"
# don't send the event to Sentry
nil
else
# filter out SQL queries from spans with sensitive data
event.spans.each do |span|
span[:description] = '<FILTERED>' if span[:op].start_with?('db')
end

event
end
end
end
```
2 changes: 1 addition & 1 deletion src/platforms/ruby/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ supportLevel: production
sdk: "sentry.ruby"
---

This is the official documentation for Sentry's Ruby SDK.
This is the official documentation for Sentry's Ruby SDK. It allows users to report messages, exceptions, and tracing events, and supports Ruby 2.4+ and the most recent JRuby versions. It also integrates with popular <PlatformLink to="/integrations/">frameworks and libraries</PlatformLink> via library-specific gems.

## Features

Expand Down

0 comments on commit 41166a7

Please sign in to comment.