{"id":20022121,"url":"https://github.com/modxcms/modx-sentry-extra","last_synced_at":"2026-01-03T05:54:07.728Z","repository":{"id":136670424,"uuid":"605264408","full_name":"modxcms/modx-sentry-extra","owner":"modxcms","description":"Extra for reporting MODX events to Sentry","archived":false,"fork":false,"pushed_at":"2023-12-09T20:06:17.000Z","size":28,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-04-14T01:49:56.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modxcms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-02-22T19:50:47.000Z","updated_at":"2024-04-17T06:38:03.878Z","dependencies_parsed_at":null,"dependency_job_id":"4d68c9b5-7b11-40e9-9940-3a77ab9c5a54","html_url":"https://github.com/modxcms/modx-sentry-extra","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"acb64fada175683962ce0829b343f41be3d55ce6"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modxcms%2Fmodx-sentry-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modxcms%2Fmodx-sentry-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modxcms%2Fmodx-sentry-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modxcms%2Fmodx-sentry-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modxcms","download_url":"https://codeload.github.com/modxcms/modx-sentry-extra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243811457,"owners_count":20351716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T08:39:14.949Z","updated_at":"2026-01-03T05:54:07.705Z","avatar_url":"https://github.com/modxcms.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sentry Extra for MODX Revolution\nThis is a MODX Extra that provides a [Sentry](https://sentry.io) integration for MODX Revolution.\n\n## Installation\n1. Install the extra via the MODX Package Manager\n2. Create a new project in Sentry\n3. Copy the DSN from the project settings\n4. Go to the System Settings and set the `sentry.dsn` setting to the DSN you copied in step 3\n5. Go to the System Settings and set the `sentry.environment` setting to the environment you want to use (e.g. `production`)\n\n## Usage\nThe extra will automatically log all errors to Sentry. You can also log messages manually:\n\n### MODX 2.x\n```php\n$sentry = $modx-\u003egetService('sentryextra', 'SentryExtra', $modx-\u003egetOption('sentryextra.core_path', null, $modx-\u003egetOption('core_path') . 'components/sentryextra/') . 'model/sentryextra/');\nif ($sentry) $sentry-\u003elog(xPDO::LOG_LEVEL_ERROR, 'This is a test error message');\n```\n\n### MODX 3.x\n```php\n$sentry = $modx-\u003eservices-\u003eget('sentryextra');\nif ($sentry) $sentry-\u003elog(xPDO::LOG_LEVEL_ERROR, 'This is a test error message');\n```\n\n## Additional System Settings\n- `sentry.traces_sample_rate` (default: `0.1`) - The percentage of errors that should be sent to Sentry. This is useful for testing the integration without spamming Sentry with errors (So, for example, if you set traces_sample_rate to 0.2, approximately 20% of your transactions will get recorded and sent.).\n- `sentry.keep_error_log` (default: `1`) - If set to `1`, the PHP Errors will not be cleared after sending the errors to Sentry. This has no effect on events that call `$modx-\u003elog()` directly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodxcms%2Fmodx-sentry-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodxcms%2Fmodx-sentry-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodxcms%2Fmodx-sentry-extra/lists"}