mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
23 lines
740 B
Ruby
23 lines
740 B
Ruby
Sentry.init do |config|
|
|
config.dsn = ENV['SENTRY_DSN']
|
|
config.breadcrumbs_logger = [:active_support_logger, :http_logger]
|
|
|
|
# Add data like request headers and IP for users,
|
|
# see https://docs.sentry.io/platforms/ruby/data-management/data-collected/ for more info
|
|
config.send_default_pii = true
|
|
|
|
# Set traces_sample_rate to 1.0 to capture 100%
|
|
# of transactions for tracing.
|
|
# We recommend adjusting this value in production.
|
|
config.traces_sample_rate = 1.0
|
|
# or
|
|
config.traces_sampler = lambda do |context|
|
|
true
|
|
end
|
|
# Set profiles_sample_rate to profile 100%
|
|
# of sampled transactions.
|
|
# We recommend adjusting this value in production.
|
|
config.profiles_sample_rate = 1.0
|
|
end
|
|
# frozen_string_literal: true
|