{"id":18986176,"url":"https://github.com/brainbits/monolog-sentry","last_synced_at":"2025-04-19T20:36:59.511Z","repository":{"id":53093558,"uuid":"521246222","full_name":"brainbits/monolog-sentry","owner":"brainbits","description":"Opiniated factory for bgalati/monolog-sentry-handler.","archived":false,"fork":false,"pushed_at":"2025-03-27T16:41:04.000Z","size":33,"stargazers_count":0,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T17:39:39.836Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/brainbits.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,"publiccode":null,"codemeta":null}},"created_at":"2022-08-04T11:51:27.000Z","updated_at":"2023-05-30T11:05:24.000Z","dependencies_parsed_at":"2025-03-27T17:33:50.397Z","dependency_job_id":"153028ae-1e4a-44b3-9977-6a777c2cd427","html_url":"https://github.com/brainbits/monolog-sentry","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainbits%2Fmonolog-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainbits%2Fmonolog-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainbits%2Fmonolog-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainbits%2Fmonolog-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainbits","download_url":"https://codeload.github.com/brainbits/monolog-sentry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249250820,"owners_count":21237961,"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-08T16:30:06.248Z","updated_at":"2025-04-16T14:32:44.834Z","avatar_url":"https://github.com/brainbits.png","language":"PHP","readme":"brainbits/monolog-sentry\n========================\n\nThis package provides a opiniated factory for bgalati/monolog-sentry-handler, based on the provided [symfony guide](https://github.com/B-Galati/monolog-sentry-handler/blob/main/doc/guide-symfony.md).\n\nRequired configuration:\n\n```yaml\n# brainbits_monolog_sentry.yaml\n\nparameters:\n    env(SENTRY_DSN): ''\n    env(SENTRY_ENVIRONMENT): ''\n\nservices:\n    _defaults:\n        autowire: true\n        autoconfigure: true\n\n    Brainbits\\MonologSentry\\SentryFactory: ~\n\n    Sentry\\State\\HubInterface:\n        factory: ['@Brainbits\\MonologSentry\\SentryFactory', 'create']\n        arguments:\n            $dsn: '%env(SENTRY_DSN)%'\n            $environment: '%env(SENTRY_ENVIRONMENT)%'\n            $inAppInclude: ['%kernel.project_dir%/src']\n            $inAppExclude: ['%kernel.cache_dir%', '%kernel.project_dir%/vendor']\n            $prefixes: ['%kernel.project_dir%']\n            $release: 'web-%app_version%'\n            $tags:\n                foo: bar\n            $logger: '@logger'\n\n    Controlling\\Sentry\\Sentry\\SentryHandler: ~\n\n    Controlling\\Sentry\\EventListener\\SentryConsoleListener: ~\n    Controlling\\Sentry\\EventListener\\SentryRequestListener:\n    Controlling\\Sentry\\EventListener\\SentryUserListener:\n    Controlling\\Sentry\\EventListener\\MonologResetterEventListener: ~\n```\n\nExample monolog configuration:\n\n```yaml\n# monolog.yaml\n\nwhen@prod:\n    monolog:\n        handlers:\n            sentry:\n                type: fingers_crossed\n                process_psr_3_messages: true\n                action_level: warning\n                handler: sentry_buffer\n                excluded_http_codes: [400, 401, 403, 404, 405]\n                buffer_size: 100 # Prevents memory leaks for workers\n                channels: [\"!event\", \"!security\"]\n            sentry_buffer:\n                type: buffer\n                handler: sentry_handler\n            sentry_handler:\n                type: service\n                id: 'Brainbits\\MonologSentry\\SentryHandler'\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainbits%2Fmonolog-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainbits%2Fmonolog-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainbits%2Fmonolog-sentry/lists"}