{"id":18654813,"url":"https://github.com/wieni/wmsentry","last_synced_at":"2025-11-05T17:30:34.891Z","repository":{"id":47548094,"uuid":"169269449","full_name":"wieni/wmsentry","owner":"wieni","description":"A module for sending errors to Sentry in Drupal 8.","archived":false,"fork":false,"pushed_at":"2023-09-12T15:16:13.000Z","size":49,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-01-27T14:47:05.908Z","etag":null,"topics":["crash-reporting","drupal-8","drupal-module","drupal8-module","raven","sentry","sentry-client"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wieni.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-05T16:07:05.000Z","updated_at":"2023-09-12T15:15:22.000Z","dependencies_parsed_at":"2022-07-26T12:17:04.772Z","dependency_job_id":null,"html_url":"https://github.com/wieni/wmsentry","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wieni%2Fwmsentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wieni%2Fwmsentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wieni%2Fwmsentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wieni%2Fwmsentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wieni","download_url":"https://codeload.github.com/wieni/wmsentry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239467450,"owners_count":19643605,"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":["crash-reporting","drupal-8","drupal-module","drupal8-module","raven","sentry","sentry-client"],"created_at":"2024-11-07T07:16:41.450Z","updated_at":"2025-11-05T17:30:34.861Z","avatar_url":"https://github.com/wieni.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"wmsentry\n======================\n\n[![Latest Stable Version](https://poser.pugx.org/wieni/wmsentry/v/stable)](https://packagist.org/packages/wieni/wmsentry)\n[![Total Downloads](https://poser.pugx.org/wieni/wmsentry/downloads)](https://packagist.org/packages/wieni/wmsentry)\n[![License](https://poser.pugx.org/wieni/wmsentry/license)](https://packagist.org/packages/wieni/wmsentry)\n\n\u003e A module for sending errors to Sentry in Drupal 9.\n\n## Why?\n- We use [Sentry](https://sentry.io) to monitor our sites and to track\n  errors\n- We couldn't find an existing (stable) module for integrating Sentry\n  with Drupal, using v2 of the Sentry SDK.\n\n## Installation\nThis module requires PHP 8.0 or higher and uses the Sentry PHP package\n([`sentry/sentry`](https://github.com/getsentry/sentry-php)), which is\nnot tied to any specific library that sends HTTP messages. Instead, it\nuses [Httplug](https://github.com/php-http/httplug) to let users choose\nwhichever PSR-7 implementation and HTTP client they want to use.\n\nIf you just want to get started quickly you should run the following command:\n\n```bash\ncomposer require wieni/wmsentry nyholm/psr7 php-http/guzzle6-adapter\n```\nFor more information, please refer to the _Install_ section of the [`sentry/sentry-php`](https://github.com/getsentry/sentry-php#install) repository README.\n\n## How does it work?\n### Configuration\nOnce enabled, you can configure the module through the settings form at\n`/admin/config/development/logging/sentry`. \n\nTo change the configuration of the module, users need the permission\n`administer wmsentry settings`.\n\nTo dynamically set the environment, release or other config values, you\ncan override the config in settings.php:\n```php\n$config['wmsentry.settings'] = [\n    'dsn' =\u003e $_ENV['SENTRY_DSN'],\n    'environment' =\u003e $_SERVER['APP_ENV'],\n];\n```\n\n### Events\n\n#### `Drupal\\wmsentry\\WmsentryEvents::BEFORE_BREADCRUMB`\nThis function is called before the breadcrumb is added to the scope.\nWhen nothing is returned from the function the breadcrumb is dropped.\nThe callback typically gets a second argument (called a “hint”) which\ncontains the original object that the breadcrumb was created from to\nfurther customize what the breadcrumb should look like.\n\n#### `Drupal\\wmsentry\\WmsentryEvents::BEFORE_SEND`\nThis function can return a modified event object or nothing to skip\nreporting the event. This can be used for instance for manual PII\nstripping before sending.\n     \n#### `Drupal\\wmsentry\\WmsentryEvents::SCOPE_ALTER`\nThis function is called before the scope is added to the captured event.\nThe scope holds data that should implicitly be sent with Sentry events.\nIt can hold context data, extra parameters, level overrides,\nfingerprints etc.\n     \n#### `Drupal\\wmsentry\\WmsentryEvents::OPTIONS_ALTER`\nThis function is called before the client is created with an options\nobject. The options object is a configuration container for the Sentry\nclient.\n\n### Setting the release ID through an HTTP endpoint\nThis module provides an HTTP endpoint that can be used to set the Sentry release ID without being logged in. This can \nbe useful when creating a new Sentry release through the API, eg. in a CI pipeline.\n\nThe endpoint is `/sentry/set-release` and is secured in the same way as the `core/rebuild.php` script (see \n[documentation](https://www.drupal.org/node/2153725)). The release ID can be passed using the `release` query parameter. \nHere's an example call:\n```\n/sentry/set-release?release=exampleproject@62d50f53\u0026timestamp=1614934032\u0026token=XXE6H4wwVC6x5I6QnTPFTj-hSksNfgUpndv9X-3lC7Y\n```\n\n## Changelog\nAll notable changes to this project will be documented in the\n[CHANGELOG](CHANGELOG.md) file.\n\n## Security\nIf you discover any security-related issues, please email\n[security@wieni.be](mailto:security@wieni.be) instead of using the issue\ntracker.\n\n## License\nDistributed under the MIT License. See the [LICENSE](LICENSE) file\nfor more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwieni%2Fwmsentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwieni%2Fwmsentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwieni%2Fwmsentry/lists"}