mirror of
https://github.com/getsentry/sentry-for-ai.git
synced 2026-09-14 14:28:22 +08:00
9025bffefb
Tests that the agent detects an existing Rollbar setup, removes it, and replaces it with Sentry including migrating Rollbar API calls in application code to Sentry equivalents. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.2 KiB
JSON
39 lines
1.2 KiB
JSON
{
|
|
"name": "rails-rollbar-replace",
|
|
"given": "A Rails 8 application with Rollbar already configured for error monitoring",
|
|
"prompt": "Replace Rollbar with Sentry in this Rails application. Set up full Sentry monitoring including error tracking, tracing, and logging. Remove the Rollbar gem and configuration. Use the SENTRY_DSN environment variable.",
|
|
"fixture": "rails-rollbar-replace",
|
|
"files": [
|
|
{
|
|
"path": "config/initializers/sentry.rb",
|
|
"contains": [
|
|
"Sentry.init",
|
|
"config.dsn",
|
|
"SENTRY_DSN",
|
|
"config.traces_sample_rate",
|
|
"config.enable_logs",
|
|
"config.breadcrumbs_logger",
|
|
"config.send_default_pii"
|
|
],
|
|
"excludes": ["otlp", "Rollbar"]
|
|
},
|
|
{
|
|
"path": "Gemfile",
|
|
"contains": ["sentry-ruby", "sentry-rails"],
|
|
"excludes": ["rollbar"]
|
|
},
|
|
{
|
|
"path": "app/controllers/posts_controller.rb",
|
|
"contains": ["Sentry"],
|
|
"excludes": ["Rollbar"]
|
|
}
|
|
],
|
|
"should_not_exist": [
|
|
"config/initializers/rollbar.rb"
|
|
],
|
|
"soft_assertions": [
|
|
{ "criterion": "The agent replaced Rollbar.error/warning/info calls with Sentry equivalents like Sentry.capture_exception or Sentry.capture_message" }
|
|
],
|
|
"negative_assertions": []
|
|
}
|