{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://www.rubyschema.org/honeybadger.json",
  "title": "Honeybadger configuration",
  "markdownDescription": "Configuration for Honeybadger, an error and performance monitoring service for Ruby, JavaScript, PHP, Python, Elixir, and more.\n\nThis YAML configuration file supports environment-specific settings, ERB templating, and both error tracking and Insights (performance monitoring) features.\n\n[Honeybadger Configuration Documentation](https://docs.honeybadger.io/lib/ruby/gem-reference/configuration/)",
  "type": "object",
  "definitions": {
    "erb": {
      "type": "string",
      "pattern": "^<%=.*%>$"
    },
    "constant": {
      "type": "string",
      "pattern": "^(?:::)?[A-Z][a-zA-Z0-9_]*(?:::[A-Z][a-zA-Z0-9_]*)*$"
    },
    "environment": {
      "markdownDescription": "Environment-specific configuration for Honeybadger.\n\nSettings defined here override top-level settings when running in the specified environment (e.g., `production`, `development`, `staging`).\n\nSupports ERB templating for dynamic values.",
      "properties": {
        "api_key": {
          "type": "string",
          "markdownDescription": "The API key for your Honeybadger project.\n\n**Required** for error reporting and Insights.\n\nFind your API key in your Honeybadger project settings: **Settings → API Keys**\n\n[API Keys Documentation](https://docs.honeybadger.io/lib/ruby/gem-reference/configuration/)"
        },
        "env": {
          "type": "string",
          "markdownDescription": "The environment the app is running in.\n\nIn Rails this defaults to `Rails.env`.\n\nExample: `production`, `staging`, `development`\n\nThis affects error grouping and allows environment-specific configuration."
        },
        "report_data": {
          "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
          "markdownDescription": "Enable/disable reporting of data to Honeybadger.\n\nDefault: `false` for environments listed in `development_environments` (`test`, `development`, and `cucumber` by default); `true` for all others.\n\nSet to `false` to disable error and event reporting entirely (useful for local development).\n\n[Environments Documentation](https://docs.honeybadger.io/lib/ruby/getting-started/environments/)"
        },
        "root": {
          "type": "string",
          "markdownDescription": "The project's absolute root path.\n\nDefault: the current working directory (`Rails.root` in Rails)."
        },
        "revision": {
          "type": "string",
          "markdownDescription": "The project's git revision (commit SHA).\n\nDefault: Automatically detected from git.\n\nUsed to link errors to specific code versions and for deployment tracking.\n\n[Deployment Tracking Documentation](https://docs.honeybadger.io/lib/ruby/getting-started/tracking-deployments/)"
        },
        "hostname": {
          "type": "string",
          "markdownDescription": "The hostname of the current box.\n\nDefault: `Socket.gethostname`"
        },
        "backend": {
          "type": "string",
          "markdownDescription": "An alternate backend to use for reporting data."
        },
        "debug": {
          "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
          "markdownDescription": "Enables verbose debug logging.",
          "default": false
        },
        "development_environments": {
          "markdownDescription": "Environments which will not report data by default (use `report_data` to enable/disable explicitly).\n\nDefault: `['development', 'test', 'cucumber']`",
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          },
          "default": ["development", "test", "cucumber"]
        },
        "send_data_at_exit": {
          "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
          "markdownDescription": "Prevent the Ruby program from exiting until all queued notices have been delivered to Honeybadger. (This can take a while in some cases; see `max_queue_size`.)",
          "default": true
        },
        "max_queue_size": {
          "anyOf": [{ "type": "integer" }, { "$ref": "#/definitions/erb" }],
          "markdownDescription": "Maximum number of error notices to queue for delivery at one time.\n\nNew notices will be dropped if this number is exceeded.\n\nDefault: `100`\n\n**Note:** Increasing this value can use more memory. Decrease if you're experiencing memory issues in high-error scenarios.",
          "default": 100
        },
        "events": {
          "type": "object",
          "properties": {
            "max_queue_size": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "Maximum number of events for the event worker queue.\n\nRaise this if your app sends large bursts of events.\n\nDefault: `10000` (`100000` before honeybadger 6.10.0)",
              "default": 10000
            },
            "batch_size": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "Send the events batch once this many events have accumulated.",
              "default": 1000
            },
            "timeout": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "Timeout (in milliseconds) after which the events batch will be sent regardless of its size.",
              "default": 30000
            },
            "attach_hostname": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Add the hostname to all event payloads.",
              "default": true
            },
            "attach_environment": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Add the environment to all event payloads.",
              "default": true
            },
            "ignore": {
              "markdownDescription": "A list of additional events to ignore (appended to the default ignored events).\n\nA string or regex matches on `event_type`. Use a hash to query nested payloads, matching values using a string or regex.\n\nExample:\n```yaml\nevents:\n  ignore:\n    - sql.active_record\n    - event_type: process_action.action_controller\n      controller: Rails::HealthController\n```",
              "type": "array",
              "items": {
                "anyOf": [{ "type": "string" }, { "type": "object" }]
              }
            },
            "ignore_only": {
              "markdownDescription": "A list of events to ignore, **overriding** the default ignored events. Accepts the same formats as `events.ignore`.",
              "type": "array",
              "items": {
                "anyOf": [{ "type": "string" }, { "type": "object" }]
              }
            },
            "sample_rate": {
              "anyOf": [
                { "type": "integer", "minimum": 0, "maximum": 100 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "Percentage of events to send to the API (0-100). A value of `0` means no events are sent, `100` means all events are sent.",
              "default": 100
            }
          }
        },
        "sql": {
          "type": "object",
          "properties": {
            "max_length": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "SQL queries larger than this many bytes are truncated instead of obfuscated (in Insights events and breadcrumbs). Scanning very large queries is slow and can exceed `Regexp.timeout`.",
              "default": 1000000
            }
          }
        },
        "sync": {
          "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
          "markdownDescription": "Send all notices synchronously instead of queueing them for delivery in a background thread.",
          "default": false
        },
        "plugins": {
          "markdownDescription": "An optional list of plugins to load. Default is to load all plugins.\n\n[Plugins Documentation](https://docs.honeybadger.io/lib/ruby/gem-reference/plugins/)",
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          },
          "examples": [["rails", "sidekiq"]]
        },
        "skipped_plugins": {
          "markdownDescription": "An optional list of plugins to skip.\n\n[Plugins Documentation](https://docs.honeybadger.io/lib/ruby/gem-reference/plugins/)",
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          },
          "examples": [["passenger", "thor"]]
        },
        "logging": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string",
              "markdownDescription": "The path (absolute, or relative from `root`) to the log file.\n\nDefault: the framework logger (e.g. `Rails.logger`) if available, otherwise logging is disabled.\n\nSet to `'STDOUT'` to log to standard output.\n\nExample: `'log/honeybadger.log'`"
            },
            "level": {
              "anyOf": [
                { "$ref": "#/definitions/erb" },
                {
                  "enum": [
                    "DEBUG",
                    "INFO",
                    "WARN",
                    "ERROR",
                    "debug",
                    "info",
                    "warn",
                    "error"
                  ],
                  "markdownEnumDescriptions": [
                    "Most verbose logging level",
                    "Standard informational messages (default)",
                    "Warning messages only",
                    "Error messages only",
                    "Most verbose logging level",
                    "Standard informational messages (default)",
                    "Warning messages only",
                    "Error messages only"
                  ]
                }
              ],
              "markdownDescription": "The log level for Honeybadger's internal logging. Case-insensitive; unrecognised values fall back to `INFO`.\n\nDefault: `INFO`",
              "default": "INFO"
            },
            "tty_level": {
              "anyOf": [
                {
                  "enum": [
                    "DEBUG",
                    "INFO",
                    "WARN",
                    "ERROR",
                    "debug",
                    "info",
                    "warn",
                    "error"
                  ],
                  "markdownEnumDescriptions": [
                    "Most verbose logging level",
                    "Standard informational messages",
                    "Warning messages only",
                    "Error messages only",
                    "Most verbose logging level",
                    "Standard informational messages",
                    "Warning messages only",
                    "Error messages only"
                  ]
                },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "The log level when outputting to a terminal (TTY).\n\nMessages below `logging.level` are always ignored, regardless of this setting.\n\nDefault: `DEBUG`",
              "default": "DEBUG"
            },
            "debug": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Override debug logging. When unset, follows the top-level `debug` option."
            }
          },
          "additionalProperties": false
        },
        "connection": {
          "type": "object",
          "properties": {
            "secure": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Use SSL when sending data.",
              "default": true
            },
            "host": {
              "type": "string",
              "markdownDescription": "The host to use when sending data.",
              "default": "api.honeybadger.io"
            },
            "ui_host": {
              "type": "string",
              "markdownDescription": "The host to use when viewing data (used when generating links to errors).",
              "default": "app.honeybadger.io"
            },
            "port": {
              "anyOf": [{ "type": "integer" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "The port to use when sending data.\n\nDefault: `443` when `connection.secure` is `true`, otherwise `80`."
            },
            "http_open_timeout": {
              "anyOf": [{ "type": "integer" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "The HTTP open timeout (in seconds) when connecting to the server.",
              "default": 2
            },
            "http_read_timeout": {
              "anyOf": [{ "type": "integer" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "The HTTP read timeout (in seconds) when connecting to the server.",
              "default": 5
            },
            "system_ssl_cert_chain": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Use the system's SSL certificate chain (if available).",
              "default": false
            },
            "ssl_ca_bundle_path": {
              "type": "string",
              "markdownDescription": "Path to a CA bundle to use when establishing secure connections."
            },
            "proxy_host": {
              "type": "string",
              "markdownDescription": "The proxy host to use when sending data."
            },
            "proxy_port": {
              "anyOf": [{ "type": "integer" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "The proxy port to use when sending data."
            },
            "proxy_user": {
              "type": "string",
              "markdownDescription": "The proxy user to use when sending data."
            },
            "proxy_pass": {
              "type": "string",
              "markdownDescription": "The proxy password to use when sending data."
            }
          }
        },
        "request": {
          "type": "object",
          "properties": {
            "filter_keys": {
              "markdownDescription": "A list of keys to filter when sending request data.\n\nIn Rails, this also includes existing params filters configured in `config.filter_parameters`.\n\nDefault: `['password', 'password_confirmation', 'HTTP_AUTHORIZATION']`\n\nExample: Add `'credit_card'`, `'ssn'`, or other sensitive field names.\n\n[Filtering Sensitive Data Documentation](https://docs.honeybadger.io/lib/ruby/getting-started/filtering-sensitive-data/)",
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string"
              },
              "default": [
                "password",
                "password_confirmation",
                "HTTP_AUTHORIZATION"
              ]
            },
            "disable_session": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Prevent session from being sent with request data.",
              "default": false
            },
            "disable_params": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Prevent params from being sent with request data.",
              "default": false
            },
            "disable_environment": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Prevent Rack environment from being sent with request data.",
              "default": false
            },
            "disable_url": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Prevent url from being sent with request data (Rack environment may still contain it in some cases).",
              "default": false
            }
          }
        },
        "user_informer": {
          "type": "object",
          "properties": {
            "enabled": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Enable the UserInformer middleware. The user informer displays information about a Honeybadger error to your end-users when you display a 500 error page. This typically includes the error id which can be used to reference the error inside your Honeybadger account. [Learn more](https://docs.honeybadger.io/lib/ruby/getting-started/collecting-user-feedback/)",
              "default": true
            },
            "info": {
              "type": "string",
              "markdownDescription": "Replacement string for the `<!-- HONEYBADGER ERROR -->` HTML comment in templates. `{{error_id}}` is replaced with the error's ID.\n\nDefault: `Honeybadger Error {{error_id}}`",
              "default": "Honeybadger Error {{error_id}}"
            }
          }
        },
        "feedback": {
          "type": "object",
          "properties": {
            "enabled": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Enable the UserFeedback middleware. Feedback displays a comment form to your-end user when they encounter an error. When the user creates a comment, it is added to the error in Honeybadger, and a notification is sent. [Learn More](https://docs.honeybadger.io/lib/ruby/getting-started/collecting-user-feedback/)",
              "default": true
            }
          }
        },
        "exceptions": {
          "type": "object",
          "properties": {
            "enabled": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Enable error reporting functionality.",
              "default": true
            },
            "ignore": {
              "markdownDescription": "A list of exception class names to ignore.\n\n**Appends** to default ignore list (use `ignore_only` to override defaults).\n\nDefault ignore list includes common framework exceptions like `ActionController::RoutingError`, `ActiveRecord::RecordNotFound`, etc.\n\nExample:\n```yaml\nexceptions:\n  ignore:\n    - CustomNotFoundError\n    - TemporaryError\n```\n\n[Ignoring Errors Documentation](https://docs.honeybadger.io/lib/ruby/getting-started/ignoring-errors/)",
              "type": "array",
              "uniqueItems": true,
              "items": {
                "anyOf": [
                  { "$ref": "#/definitions/constant" },
                  { "$ref": "#/definitions/erb" }
                ]
              }
            },
            "ignore_only": {
              "markdownDescription": "A list of exception class names to ignore.\n\n**Overrides** default ignore list (use `ignore` to append to defaults).\n\nUse this when you want complete control over which exceptions are ignored.\n\nExample:\n```yaml\nexceptions:\n  ignore_only:\n    - ActionController::RoutingError\n```",
              "type": "array",
              "uniqueItems": true,
              "items": {
                "anyOf": [
                  { "$ref": "#/definitions/constant" },
                  { "$ref": "#/definitions/erb" }
                ]
              }
            },
            "ignored_user_agents": {
              "markdownDescription": "A list of user agents to ignore.",
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string"
              },
              "default": []
            },
            "rescue_rake": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Enable rescuing exceptions in rake tasks. Default: `true` when run in background; `false` when run in terminal."
            },
            "notify_at_exit": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Report unhandled exception when Ruby crashes (at_exit).",
              "default": true
            },
            "source_radius": {
              "anyOf": [{ "type": "integer" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "The number of lines before and after the source when reporting snippets.",
              "default": 2
            },
            "backtrace_limit": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "The maximum number of backtrace lines to include in error reports.",
              "default": 1000
            },
            "local_variables": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Enable sending local variables. Requires the [binding_of_caller](https://rubygems.org/gems/binding_of_caller) gem.",
              "default": false
            },
            "unwrap": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Reports #original_exception or #cause one level up from rescued exception when available.",
              "default": false
            }
          }
        },
        "breadcrumbs": {
          "type": "object",
          "properties": {
            "enabled": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Enable breadcrumb functionality.\n\nBreadcrumbs capture a trail of events leading up to an error, helping you understand context.\n\nDefault: `true`\n\n[Breadcrumbs Documentation](https://docs.honeybadger.io/lib/ruby/getting-started/breadcrumbs/)",
              "default": true
            },
            "active_support_notifications": {
              "markdownDescription": "Configuration for automatic breadcrumb capture from Active Support Instrumentation events.\n\nBy default, Honeybadger automatically creates breadcrumbs for Rails framework events like database queries, cache operations, and view renders.\n\nYou can customize which events are captured here.\n\n[Active Support Instrumentation](https://guides.rubyonrails.org/active_support_instrumentation.html)",
              "type": "object"
            },
            "logging": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable/Disable automatic breadcrumbs from log messages.",
                  "default": true
                }
              }
            }
          }
        },
        "insights": {
          "type": "object",
          "properties": {
            "enabled": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Enable/Disable Honeybadger Insights built-in instrumentation.\n\n[Insights Documentation](https://docs.honeybadger.io/guides/insights/)",
              "default": true
            },
            "console": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable/Disable Honeybadger Insights built-in instrumentation in a Rails console.",
                  "default": false
                }
              }
            },
            "registry_flush_interval": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "Number of seconds between metric registry flushes.",
              "default": 60
            }
          }
        },
        "active_agent": {
          "type": "object",
          "properties": {
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights data collection for Active Agent.",
                  "default": true
                }
              }
            }
          }
        },
        "active_job": {
          "type": "object",
          "properties": {
            "attempt_threshold": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "The number of attempts before notifications will be sent.",
              "default": 0
            },
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights instrumentation for this plugin.\n\nInsights provides performance monitoring and APM features.\n\nDefault: `true`\n\n[Insights Documentation](https://docs.honeybadger.io/guides/insights/)",
                  "default": true
                },
                "events": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Active Job events to Insights.",
                  "default": true
                },
                "metrics": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Active Job metrics to Insights.",
                  "default": false
                }
              }
            }
          }
        },
        "sidekiq": {
          "type": "object",
          "properties": {
            "attempt_threshold": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "The number of attempts before notifications will be sent.",
              "default": 0
            },
            "use_component": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Automatically set the component to the class of the job. Helps with grouping.",
              "default": true
            },
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights instrumentation for Sidekiq.",
                  "default": true
                },
                "collection_interval": {
                  "anyOf": [
                    { "type": "integer", "minimum": 0 },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "The frequency, in seconds, in which Sidekiq metrics are sampled.",
                  "default": 5
                },
                "cluster_collection": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable cluster wide metric collection. If you are using Sidekiq Enterprise, this is configured automatically.",
                  "default": true
                },
                "events": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Sidekiq events to Insights.",
                  "default": true
                },
                "metrics": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Sidekiq metrics to Insights.",
                  "default": false
                }
              }
            }
          }
        },
        "solid_queue": {
          "type": "object",
          "properties": {
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights instrumentation for SolidQueue.",
                  "default": true
                },
                "collection_interval": {
                  "anyOf": [
                    { "type": "integer" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "The frequency, in seconds, in which SolidQueue metrics are sampled.",
                  "default": 5
                },
                "cluster_collection": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable cluster wide metric collection.",
                  "default": true
                },
                "events": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending SolidQueue events to Insights.",
                  "default": true
                },
                "metrics": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending SolidQueue metrics to Insights.",
                  "default": false
                }
              }
            }
          }
        },
        "delayed_job": {
          "type": "object",
          "properties": {
            "attempt_threshold": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "The number of attempts before notifications will be sent.",
              "default": 0
            }
          }
        },
        "shoryuken": {
          "type": "object",
          "properties": {
            "attempt_threshold": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "The number of attempts before notifications will be sent.",
              "default": 0
            }
          }
        },
        "faktory": {
          "type": "object",
          "properties": {
            "attempt_threshold": {
              "anyOf": [
                { "type": "integer", "minimum": 0 },
                { "$ref": "#/definitions/erb" }
              ],
              "markdownDescription": "The number of attempts before notifications will be sent.",
              "default": 0
            }
          }
        },
        "resque": {
          "type": "object",
          "properties": {
            "resque_retry": {
              "type": "object",
              "properties": {
                "send_exceptions_when_retrying": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Send exceptions when retrying a job (with `resque-retry`).",
                  "default": true
                }
              }
            }
          }
        },
        "sinatra": {
          "type": "object",
          "properties": {
            "enabled": {
              "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/erb" }],
              "markdownDescription": "Enable Sinatra auto-initialization.",
              "default": true
            }
          }
        },
        "rails": {
          "type": "object",
          "properties": {
            "subscriber_ignore_sources": {
              "markdownDescription": "Sources (strings or regexes) that should be ignored when using the Rails (7+) native error reporter (handled exceptions only).\n\nDefault: `['application.active_support']`",
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string"
              },
              "default": ["application.active_support"]
            },
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights instrumentation for Rails.",
                  "default": true
                },
                "events": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Rails events to Insights.",
                  "default": true
                },
                "metrics": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Rails metrics to Insights.",
                  "default": false
                }
              }
            }
          }
        },
        "autotuner": {
          "type": "object",
          "properties": {
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights data collection for Autotuner.",
                  "default": true
                },
                "events": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Autotuner events to Insights.",
                  "default": true
                },
                "metrics": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Autotuner metrics to Insights.",
                  "default": false
                }
              }
            }
          }
        },
        "puma": {
          "type": "object",
          "properties": {
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights data collection for Puma.",
                  "default": true
                },
                "events": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Puma events to Insights.",
                  "default": true
                },
                "metrics": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Puma metrics to Insights.",
                  "default": false
                },
                "collection_interval": {
                  "anyOf": [
                    { "type": "integer", "minimum": 0 },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "The frequency, in seconds, in which Puma stats are collected.",
                  "default": 1
                }
              }
            }
          }
        },
        "karafka": {
          "type": "object",
          "properties": {
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights instrumentation for Karafka.",
                  "default": true
                },
                "events": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Karafka events to Insights.",
                  "default": true
                },
                "metrics": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending Karafka metrics to Insights.",
                  "default": false
                }
              }
            }
          }
        },
        "net_http": {
          "type": "object",
          "properties": {
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights instrumentation for `Net::HTTP`.",
                  "default": true
                },
                "full_url": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Log the request URL instead of just the domain.",
                  "default": false
                },
                "events": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending `Net::HTTP` events to Insights.",
                  "default": true
                },
                "metrics": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable sending `Net::HTTP` metrics to Insights.",
                  "default": false
                }
              }
            }
          }
        },
        "flipper": {
          "type": "object",
          "properties": {
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights data collection for Flipper.",
                  "default": true
                }
              }
            }
          }
        },
        "ruby_llm": {
          "type": "object",
          "properties": {
            "insights": {
              "type": "object",
              "properties": {
                "enabled": {
                  "anyOf": [
                    { "type": "boolean" },
                    { "$ref": "#/definitions/erb" }
                  ],
                  "markdownDescription": "Enable automatic Insights data collection for RubyLLM.",
                  "default": true
                },
                "subscriber": {
                  "type": "string",
                  "markdownDescription": "Fully qualified class name of a custom subscriber for RubyLLM instrumentation.\n\nDefault: `Honeybadger::RubyLLMSubscriber`",
                  "examples": ["MyRubyLLMSubscriber"]
                }
              }
            }
          }
        }
      }
    }
  },
  "properties": {
    "production": { "$ref": "#/definitions/environment" },
    "development": { "$ref": "#/definitions/environment" }
  },
  "$ref": "#/definitions/environment",
  "additionalProperties": {
    "$ref": "#/definitions/environment"
  }
}
