All SDKs
Rack
vsentry-ruby
Use the official Sentry SDK with the DSN shown in your AllStak project setup. No AllStak-specific SDK is required.
Install
These official Sentry commands come from the AllStak-managed SDK catalog.
gem
gem install sentry-rubybundler
bundle add sentry-rubyQuick start
require "sentry-ruby"
Sentry.init do |config|
config.dsn = "{{DSN}}"
config.environment = "production"
config.release = "[email protected]"
config.traces_sample_rate = 1.0
# Off by default. Enable only if you accept sending usernames,
# emails and IP addresses to your telemetry backend.
config.send_default_pii = false
end
Sentry.capture_exception(StandardError.new("hello from sentry-ruby"))