repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-delayed_job/app.rb | ruby/sentry-delayed_job/app.rb | # frozen_string_literal: true
require "active_job"
require "active_record"
require "delayed_job"
require "delayed_job_active_record"
require "sentry-delayed_job"
# require "logger"
# This connection will do for database-independent bug reports.
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":m... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/resque_jobs/raise_error.rb | ruby/sentry-rails/rails-6.0/app/resque_jobs/raise_error.rb | class RaiseError
@queue = :default
def self.perform
1/0
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/jobs/application_job.rb | ruby/sentry-rails/rails-6.0/app/jobs/application_job.rb | class ApplicationJob < ActiveJob::Base
# Automatically retry jobs that encountered a deadlock
# retry_on ActiveRecord::Deadlocked
# Most jobs are safe to ignore if the underlying records are no longer available
# discard_on ActiveJob::DeserializationError
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/jobs/error_job.rb | ruby/sentry-rails/rails-6.0/app/jobs/error_job.rb | class ErrorJob < ApplicationJob
self.queue_adapter = :async
def perform
a = 1
b = 2
raise "Job failed"
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/workers/error_worker.rb | ruby/sentry-rails/rails-6.0/app/workers/error_worker.rb | class ErrorWorker
include Sidekiq::Worker
sidekiq_options retry: false
def perform
a = 1
raise "Worker failed"
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/delayed_jobs/error_delayed_job.rb | ruby/sentry-rails/rails-6.0/app/delayed_jobs/error_delayed_job.rb | class ErrorDelayedJob
def self.perform
1/0
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/helpers/posts_helper.rb | ruby/sentry-rails/rails-6.0/app/helpers/posts_helper.rb | module PostsHelper
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/helpers/application_helper.rb | ruby/sentry-rails/rails-6.0/app/helpers/application_helper.rb | module ApplicationHelper
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/controllers/posts_controller.rb | ruby/sentry-rails/rails-6.0/app/controllers/posts_controller.rb | class PostsController < ApplicationController
before_action :set_post, only: [:show, :edit, :update, :destroy]
# GET /posts
# GET /posts.json
def index
@posts = Post.all
end
# GET /posts/1
# GET /posts/1.json
def show
@post.cover.attach(
io: File.open(File.join(Rails.root, 'public', 'fav... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/controllers/welcome_controller.rb | ruby/sentry-rails/rails-6.0/app/controllers/welcome_controller.rb | class WelcomeController < ApplicationController
before_action :set_sentry_context
def index
a = 1
b = 0
a / b
end
def connect_trace
# see the sinatra example under the `sentry-ruby` folder
response = Net::HTTP.get_response(URI("http://localhost:4567/connect_trace"))
render plain: resp... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/controllers/application_controller.rb | ruby/sentry-rails/rails-6.0/app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/models/post.rb | ruby/sentry-rails/rails-6.0/app/models/post.rb | class Post < ApplicationRecord
has_one_attached :cover
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/models/application_record.rb | ruby/sentry-rails/rails-6.0/app/models/application_record.rb | class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/mailers/application_mailer.rb | ruby/sentry-rails/rails-6.0/app/mailers/application_mailer.rb | class ApplicationMailer < ActionMailer::Base
default from: 'from@example.com'
layout 'mailer'
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/channels/appearance_channel.rb | ruby/sentry-rails/rails-6.0/app/channels/appearance_channel.rb | class AppearanceChannel < ApplicationCable::Channel
def subscribed
end
def unsubscribed
end
def hello
end
def goodbye(data)
1 / 0
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/channels/application_cable/channel.rb | ruby/sentry-rails/rails-6.0/app/channels/application_cable/channel.rb | module ApplicationCable
class Channel < ActionCable::Channel::Base
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/app/channels/application_cable/connection.rb | ruby/sentry-rails/rails-6.0/app/channels/application_cable/connection.rb | module ApplicationCable
class Connection < ActionCable::Connection::Base
def connect
end
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/db/seeds.rb | ruby/sentry-rails/rails-6.0/db/seeds.rb | # This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Ch... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/db/schema.rb | ruby/sentry-rails/rails-6.0/db/schema.rb | # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# This file is the source Rails uses to define your schema when running `bin/rai... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/db/migrate/20201120074001_create_posts.rb | ruby/sentry-rails/rails-6.0/db/migrate/20201120074001_create_posts.rb | class CreatePosts < ActiveRecord::Migration[6.0]
def change
create_table :posts do |t|
t.string :title
t.text :content
t.timestamps
end
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/db/migrate/20211219212232_create_delayed_jobs.rb | ruby/sentry-rails/rails-6.0/db/migrate/20211219212232_create_delayed_jobs.rb | class CreateDelayedJobs < ActiveRecord::Migration[6.1]
def self.up
create_table :delayed_jobs do |table|
table.integer :priority, default: 0, null: false # Allows some jobs to jump to the front of the queue
table.integer :attempts, default: 0, null: false # Provides for retries, but still fail eventua... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/db/migrate/20211002044752_create_active_storage_tables.active_storage.rb | ruby/sentry-rails/rails-6.0/db/migrate/20211002044752_create_active_storage_tables.active_storage.rb | # This migration comes from active_storage (originally 20170806125915)
class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
def change
create_table :active_storage_blobs do |t|
t.string :key, null: false
t.string :filename, null: false
t.string :content_type
t.... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/test/application_system_test_case.rb | ruby/sentry-rails/rails-6.0/test/application_system_test_case.rb | require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/test/test_helper.rb | ruby/sentry-rails/rails-6.0/test/test_helper.rb | ENV['RAILS_ENV'] ||= 'test'
require_relative '../config/environment'
require 'rails/test_help'
class ActiveSupport::TestCase
# Run tests in parallel with specified workers
parallelize(workers: :number_of_processors)
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/test/system/posts_test.rb | ruby/sentry-rails/rails-6.0/test/system/posts_test.rb | require "application_system_test_case"
class PostsTest < ApplicationSystemTestCase
setup do
@post = posts(:one)
end
test "visiting the index" do
visit posts_url
assert_selector "h1", text: "Posts"
end
test "creating a Post" do
visit posts_url
click_on "New Post"
fill_in "Content", ... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/test/controllers/posts_controller_test.rb | ruby/sentry-rails/rails-6.0/test/controllers/posts_controller_test.rb | require 'test_helper'
class PostsControllerTest < ActionDispatch::IntegrationTest
setup do
@post = posts(:one)
end
test "should get index" do
get posts_url
assert_response :success
end
test "should get new" do
get new_post_url
assert_response :success
end
test "should create post" ... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/test/models/post_test.rb | ruby/sentry-rails/rails-6.0/test/models/post_test.rb | require 'test_helper'
class PostTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/test/channels/application_cable/connection_test.rb | ruby/sentry-rails/rails-6.0/test/channels/application_cable/connection_test.rb | require "test_helper"
class ApplicationCable::ConnectionTest < ActionCable::Connection::TestCase
# test "connects with cookies" do
# cookies.signed[:user_id] = 42
#
# connect
#
# assert_equal connection.user_id, "42"
# end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/application.rb | ruby/sentry-rails/rails-6.0/config/application.rb | require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Rails60
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails v... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/environment.rb | ruby/sentry-rails/rails-6.0/config/environment.rb | # Load the Rails application.
require_relative 'application'
# Initialize the Rails application.
Rails.application.initialize!
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/puma.rb | ruby/sentry-rails/rails-6.0/config/puma.rb | # Puma can serve each request in a thread from an internal thread pool.
# The `threads` method setting takes two numbers: a minimum and maximum.
# Any libraries that use thread pools should be configured to match
# the maximum value specified for Puma. Default is set to 5 threads for minimum
# and maximum; this matches... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/routes.rb | ruby/sentry-rails/rails-6.0/config/routes.rb | require "resque/server"
Rails.application.routes.draw do
resources :posts
get '500', to: 'welcome#report_demo'
root to: "welcome#index"
get 'appearance', to: 'welcome#appearance'
get 'connect_trace', to: 'welcome#connect_trace'
get 'view_error', to: 'welcome#view_error'
get 'sidekiq_error', to: 'welcome... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/spring.rb | ruby/sentry-rails/rails-6.0/config/spring.rb | Spring.watch(
".ruby-version",
".rbenv-vars",
"tmp/restart.txt",
"tmp/caching-dev.txt"
)
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/unicorn.rb | ruby/sentry-rails/rails-6.0/config/unicorn.rb | worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 200
preload_app true
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
defined?(ActiveRecord::Base) and
ActiveRecord::Base.co... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/boot.rb | ruby/sentry-rails/rails-6.0/config/boot.rb | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile.
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/content_security_policy.rb | ruby/sentry-rails/rails-6.0/config/initializers/content_security_policy.rb | # Be sure to restart your server when you modify this file.
# Define an application-wide content security policy
# For further information see the following documentation
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
# Rails.application.config.content_security_policy do |policy|
... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/filter_parameter_logging.rb | ruby/sentry-rails/rails-6.0/config/initializers/filter_parameter_logging.rb | # Be sure to restart your server when you modify this file.
# Configure sensitive parameters which will be filtered from the log file.
Rails.application.config.filter_parameters += [:password]
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/application_controller_renderer.rb | ruby/sentry-rails/rails-6.0/config/initializers/application_controller_renderer.rb | # Be sure to restart your server when you modify this file.
# ActiveSupport::Reloader.to_prepare do
# ApplicationController.renderer.defaults.merge!(
# http_host: 'example.org',
# https: false
# )
# end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/resque.rb | ruby/sentry-rails/rails-6.0/config/initializers/resque.rb | Resque.logger = Logger.new("#{Rails.root}/log/resque.log")
Resque.logger.level = Logger::DEBUG
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/wrap_parameters.rb | ruby/sentry-rails/rails-6.0/config/initializers/wrap_parameters.rb | # Be sure to restart your server when you modify this file.
# This file contains settings for ActionController::ParamsWrapper which
# is enabled by default.
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
ActiveSupport.on_load(:action_controller) do
wrap_parameters f... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/inflections.rb | ruby/sentry-rails/rails-6.0/config/initializers/inflections.rb | # Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format. Inflections
# are locale specific, and you may define rules for as many different
# locales as you wish. All of these examples are active by default:
# ActiveSupport::Inflector.inflections(:en) do |inflec... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/delayed_job.rb | ruby/sentry-rails/rails-6.0/config/initializers/delayed_job.rb | Delayed::Worker.logger = Logger.new(File.join(Rails.root, 'log', 'delayed_job.log'))
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/cookies_serializer.rb | ruby/sentry-rails/rails-6.0/config/initializers/cookies_serializer.rb | # Be sure to restart your server when you modify this file.
# Specify a serializer for the signed and encrypted cookie jars.
# Valid options are :json, :marshal, and :hybrid.
Rails.application.config.action_dispatch.cookies_serializer = :json
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/assets.rb | ruby/sentry-rails/rails-6.0/config/initializers/assets.rb | # Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
# Add Yarn node_modules ... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/sentry.rb | ruby/sentry-rails/rails-6.0/config/initializers/sentry.rb | Sentry.init do |config|
config.breadcrumbs_logger = [:active_support_logger]
config.background_worker_threads = 0
config.send_default_pii = true
config.traces_sample_rate = 1.0 # set a float between 0.0 and 1.0 to enable performance monitoring
config.dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ing... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/backtrace_silencers.rb | ruby/sentry-rails/rails-6.0/config/initializers/backtrace_silencers.rb | # Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
# You can also remove all the silencers if you're trying to debug a probl... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/initializers/mime_types.rb | ruby/sentry-rails/rails-6.0/config/initializers/mime_types.rb | # Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/environments/test.rb | ruby/sentry-rails/rails-6.0/config/environments/test.rb | # The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
Rails.application.configure do
# Settings... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/environments/development.rb | ruby/sentry-rails/rails-6.0/config/environments/development.rb | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web serv... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-6.0/config/environments/production.rb | ruby/sentry-rails/rails-6.0/config/environments/production.rb | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web serve... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/app/jobs/application_job.rb | ruby/sentry-rails/rails-5.2/app/jobs/application_job.rb | class ApplicationJob < ActiveJob::Base
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/app/helpers/posts_helper.rb | ruby/sentry-rails/rails-5.2/app/helpers/posts_helper.rb | module PostsHelper
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/app/controllers/posts_controller.rb | ruby/sentry-rails/rails-5.2/app/controllers/posts_controller.rb | class PostsController < ApplicationController
before_action :set_post, only: [:show, :edit, :update, :destroy]
# GET /posts
# GET /posts.json
def index
@posts = Post.all
end
# GET /posts/1
# GET /posts/1.json
def show
end
# GET /posts/new
def new
@post = Post.new
end
# GET /posts/1... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/app/controllers/welcome_controller.rb | ruby/sentry-rails/rails-5.2/app/controllers/welcome_controller.rb | class WelcomeController < ApplicationController
def index
1 / 0
end
def report_demo
render(status: 500)
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/app/controllers/application_controller.rb | ruby/sentry-rails/rails-5.2/app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/app/models/post.rb | ruby/sentry-rails/rails-5.2/app/models/post.rb | class Post < ApplicationRecord
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/app/models/application_record.rb | ruby/sentry-rails/rails-5.2/app/models/application_record.rb | class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/app/channels/application_cable/channel.rb | ruby/sentry-rails/rails-5.2/app/channels/application_cable/channel.rb | module ApplicationCable
class Channel < ActionCable::Channel::Base
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/app/channels/application_cable/connection.rb | ruby/sentry-rails/rails-5.2/app/channels/application_cable/connection.rb | module ApplicationCable
class Connection < ActionCable::Connection::Base
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/db/seeds.rb | ruby/sentry-rails/rails-5.2/db/seeds.rb | # This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Ch... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/db/schema.rb | ruby/sentry-rails/rails-5.2/db/schema.rb | # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# dat... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/db/migrate/20210112160711_create_posts.rb | ruby/sentry-rails/rails-5.2/db/migrate/20210112160711_create_posts.rb | class CreatePosts < ActiveRecord::Migration[5.2]
def change
create_table :posts do |t|
t.string :title
t.text :content
t.timestamps
end
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/test/system/posts_test.rb | ruby/sentry-rails/rails-5.2/test/system/posts_test.rb | require "application_system_test_case"
class PostsTest < ApplicationSystemTestCase
setup do
@post = posts(:one)
end
test "visiting the index" do
visit posts_url
assert_selector "h1", text: "Posts"
end
test "creating a Post" do
visit posts_url
click_on "New Post"
fill_in "Content", ... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/test/controllers/posts_controller_test.rb | ruby/sentry-rails/rails-5.2/test/controllers/posts_controller_test.rb | require 'test_helper'
class PostsControllerTest < ActionDispatch::IntegrationTest
setup do
@post = posts(:one)
end
test "should get index" do
get posts_url
assert_response :success
end
test "should get new" do
get new_post_url
assert_response :success
end
test "should create post" ... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/test/models/post_test.rb | ruby/sentry-rails/rails-5.2/test/models/post_test.rb | require 'test_helper'
class PostTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/application.rb | ruby/sentry-rails/rails-5.2/config/application.rb | require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Rails50
class Application < Rails::Application
# https://github.com/getsentry/raven-ruby/issues/494
config.exce... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/environment.rb | ruby/sentry-rails/rails-5.2/config/environment.rb | # Load the Rails application.
require_relative 'application'
# Initialize the Rails application.
Rails.application.initialize!
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/puma.rb | ruby/sentry-rails/rails-5.2/config/puma.rb | # Puma can serve each request in a thread from an internal thread pool.
# The `threads` method setting takes two numbers a minimum and maximum.
# Any libraries that use thread pools should be configured to match
# the maximum value specified for Puma. Default is set to 5 threads for minimum
# and maximum, this matches ... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/routes.rb | ruby/sentry-rails/rails-5.2/config/routes.rb | Rails.application.routes.draw do
resources :posts
root to: "welcome#index"
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/boot.rb | ruby/sentry-rails/rails-5.2/config/boot.rb | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile.
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/filter_parameter_logging.rb | ruby/sentry-rails/rails-5.2/config/initializers/filter_parameter_logging.rb | # Be sure to restart your server when you modify this file.
# Configure sensitive parameters which will be filtered from the log file.
Rails.application.config.filter_parameters += [:password]
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/application_controller_renderer.rb | ruby/sentry-rails/rails-5.2/config/initializers/application_controller_renderer.rb | # Be sure to restart your server when you modify this file.
# ApplicationController.renderer.defaults.merge!(
# http_host: 'example.org',
# https: false
# )
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/session_store.rb | ruby/sentry-rails/rails-5.2/config/initializers/session_store.rb | # Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_rails-5_0_session'
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/new_framework_defaults.rb | ruby/sentry-rails/rails-5.2/config/initializers/new_framework_defaults.rb | # Be sure to restart your server when you modify this file.
#
# This file contains migration options to ease your Rails 5.0 upgrade.
#
# Read the Rails 5.0 release notes for more info on each option.
# Enable per-form CSRF tokens. Previous versions had false.
Rails.application.config.action_controller.per_form_csrf_to... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/wrap_parameters.rb | ruby/sentry-rails/rails-5.2/config/initializers/wrap_parameters.rb | # Be sure to restart your server when you modify this file.
# This file contains settings for ActionController::ParamsWrapper which
# is enabled by default.
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
ActiveSupport.on_load(:action_controller) do
wrap_parameters f... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/inflections.rb | ruby/sentry-rails/rails-5.2/config/initializers/inflections.rb | # Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format. Inflections
# are locale specific, and you may define rules for as many different
# locales as you wish. All of these examples are active by default:
# ActiveSupport::Inflector.inflections(:en) do |inflec... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/cookies_serializer.rb | ruby/sentry-rails/rails-5.2/config/initializers/cookies_serializer.rb | # Be sure to restart your server when you modify this file.
# Specify a serializer for the signed and encrypted cookie jars.
# Valid options are :json, :marshal, and :hybrid.
Rails.application.config.action_dispatch.cookies_serializer = :json
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/assets.rb | ruby/sentry-rails/rails-5.2/config/initializers/assets.rb | # Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
# Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path
# Precompile additional ... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/sentry.rb | ruby/sentry-rails/rails-5.2/config/initializers/sentry.rb | Sentry.init do |config|
config.breadcrumbs_logger = [:active_support_logger]
config.send_default_pii = true
config.traces_sample_rate = 1.0 # set a float between 0.0 and 1.0 to enable performance monitoring
config.dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
config.release... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/backtrace_silencers.rb | ruby/sentry-rails/rails-5.2/config/initializers/backtrace_silencers.rb | # Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
# You can also remove all the silencers if you're trying to debug a probl... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/initializers/mime_types.rb | ruby/sentry-rails/rails-5.2/config/initializers/mime_types.rb | # Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/environments/test.rb | ruby/sentry-rails/rails-5.2/config/environments/test.rb | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suit... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/environments/development.rb | ruby/sentry-rails/rails-5.2/config/environments/development.rb | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web serv... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-5.2/config/environments/production.rb | ruby/sentry-rails/rails-5.2/config/environments/production.rb | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web serve... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/resque_jobs/raise_error.rb | ruby/sentry-rails/rails-7.0/app/resque_jobs/raise_error.rb | class RaiseError
@queue = :default
def self.perform
1/0
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/jobs/application_job.rb | ruby/sentry-rails/rails-7.0/app/jobs/application_job.rb | class ApplicationJob < ActiveJob::Base
# Automatically retry jobs that encountered a deadlock
# retry_on ActiveRecord::Deadlocked
# Most jobs are safe to ignore if the underlying records are no longer available
# discard_on ActiveJob::DeserializationError
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/jobs/error_job.rb | ruby/sentry-rails/rails-7.0/app/jobs/error_job.rb | class ErrorJob < ApplicationJob
self.queue_adapter = :async
def perform
a = 1
b = 2
raise "Job failed"
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/workers/error_worker.rb | ruby/sentry-rails/rails-7.0/app/workers/error_worker.rb | class ErrorWorker
include Sidekiq::Worker
sidekiq_options retry: false
def perform
a = 1
raise "Worker failed"
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/delayed_jobs/error_delayed_job.rb | ruby/sentry-rails/rails-7.0/app/delayed_jobs/error_delayed_job.rb | class ErrorDelayedJob
def self.perform
1/0
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/helpers/posts_helper.rb | ruby/sentry-rails/rails-7.0/app/helpers/posts_helper.rb | module PostsHelper
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/helpers/application_helper.rb | ruby/sentry-rails/rails-7.0/app/helpers/application_helper.rb | module ApplicationHelper
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/controllers/posts_controller.rb | ruby/sentry-rails/rails-7.0/app/controllers/posts_controller.rb | class PostsController < ApplicationController
before_action :set_post, only: [:show, :edit, :update, :destroy]
# GET /posts
# GET /posts.json
def index
@posts = Post.all
end
# GET /posts/1
# GET /posts/1.json
def show
@post.cover.attach(
io: File.open(File.join(Rails.root, 'public', 'fav... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/controllers/welcome_controller.rb | ruby/sentry-rails/rails-7.0/app/controllers/welcome_controller.rb | class WelcomeController < ApplicationController
before_action :set_sentry_context
def index
a = 1
b = 0
a / b
end
def connect_trace
# see the sinatra example under the `sentry-ruby` folder
response = Net::HTTP.get_response(URI("http://localhost:4567/connect_trace"))
render plain: resp... | ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/controllers/application_controller.rb | ruby/sentry-rails/rails-7.0/app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/models/post.rb | ruby/sentry-rails/rails-7.0/app/models/post.rb | class Post < ApplicationRecord
has_one_attached :cover
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/models/application_record.rb | ruby/sentry-rails/rails-7.0/app/models/application_record.rb | class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/mailers/application_mailer.rb | ruby/sentry-rails/rails-7.0/app/mailers/application_mailer.rb | class ApplicationMailer < ActionMailer::Base
default from: 'from@example.com'
layout 'mailer'
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/channels/appearance_channel.rb | ruby/sentry-rails/rails-7.0/app/channels/appearance_channel.rb | class AppearanceChannel < ApplicationCable::Channel
def subscribed
end
def unsubscribed
end
def hello
end
def goodbye(data)
1 / 0
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/channels/application_cable/channel.rb | ruby/sentry-rails/rails-7.0/app/channels/application_cable/channel.rb | module ApplicationCable
class Channel < ActionCable::Channel::Base
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
getsentry/examples | https://github.com/getsentry/examples/blob/02dbc89a35fe1804dbe00e481716a9dd79920cf5/ruby/sentry-rails/rails-7.0/app/channels/application_cable/connection.rb | ruby/sentry-rails/rails-7.0/app/channels/application_cable/connection.rb | module ApplicationCable
class Connection < ActionCable::Connection::Base
def connect
end
end
end
| ruby | MIT | 02dbc89a35fe1804dbe00e481716a9dd79920cf5 | 2026-01-04T17:57:20.388692Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.