-
-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My api-only mode rails service not working on 5.10 #2077
Comments
@stuckyi-slayer seems you're still using |
I don't have async options. # frozen_string_literal: true
# See Also https://docs.sentry.io/platforms/ruby/guides/rails/configuration/options/
Sentry.init do |config|
config.dsn = Rails.application.credentials.sentry_dsn
config.breadcrumbs_logger = %i[active_support_logger http_logger]
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
config.traces_sampler = if Rails.env.staging?
lambda do |sampling_context|
# transaction_context is the transaction object in hash form
# keep in mind that sampling happens right after the transaction is initialized
# for example, at the beginning of the request
transaction_context = sampling_context[:transaction_context]
# transaction_context helps you sample transactions with more sophistication
# for example, you can provide different sample rates based on the operation or name
op = transaction_context[:op]
transaction_name = transaction_context[:name]
case op
when /http/
case transaction_name
when /health/
0.0 # ignore health_check requests
else
1.0
end
else
0.0 # ignore all other transactions
end
end
else
lambda do |sampling_context|
# transaction_context is the transaction object in hash form
# keep in mind that sampling happens right after the transaction is initialized
# for example, at the beginning of the request
transaction_context = sampling_context[:transaction_context]
# transaction_context helps you sample transactions with more sophistication
# for example, you can provide different sample rates based on the operation or name
op = transaction_context[:op]
transaction_name = transaction_context[:name]
case op
when /http/
case transaction_name
when /health/
0.0 # ignore health_check requests
else
0.1
end
else
0.0 # ignore all other transactions
end
end
end
filter = ActiveSupport::ParameterFilter.new(Rails.application.config.filter_parameters)
config.before_send = lambda do |event, _hint|
filter.filter(event.to_hash)
end
config.enabled_environments = %w[production staging]
config.max_breadcrumbs = 30
config.send_default_pii = true
config.send_modules = false
end |
@stuckyi-slayer I tried loading without |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Issue Description
I installed sentry-ruby, sentry-rails gem on my service. it is api-only mode and i commented unnecessary frameworks.
and i found i commented active_job/railtie, i can't load service. I got following message.
error messages
application.rb
when i uncomment active_job/railtie, then errors gone.
Reproduction Steps
comment following in application.rb
Expected Behavior
puma start normally.
Actual Behavior
puma can not start.
Ruby Version
2.7.8
SDK Version
5.10
Integration and Its Version
Rails 7.0.6
Sentry Config
The text was updated successfully, but these errors were encountered: