{"id":32295440,"url":"https://github.com/leftyio/angular_sentry","last_synced_at":"2026-03-11T07:01:03.786Z","repository":{"id":61972669,"uuid":"122204295","full_name":"leftyio/angular_sentry","owner":"leftyio","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-23T13:31:42.000Z","size":29,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-01T04:06:14.851Z","etag":null,"topics":["angular","browser","dart","sentry"],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/leftyio.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":"2018-02-20T13:50:40.000Z","updated_at":"2024-12-29T15:29:42.000Z","dependencies_parsed_at":"2022-10-24T13:15:28.664Z","dependency_job_id":null,"html_url":"https://github.com/leftyio/angular_sentry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leftyio/angular_sentry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leftyio%2Fangular_sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leftyio%2Fangular_sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leftyio%2Fangular_sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leftyio%2Fangular_sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leftyio","download_url":"https://codeload.github.com/leftyio/angular_sentry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leftyio%2Fangular_sentry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30373505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angular","browser","dart","sentry"],"created_at":"2025-10-23T03:56:17.110Z","updated_at":"2026-03-11T07:01:03.780Z","avatar_url":"https://github.com/leftyio.png","language":"Dart","readme":"[![Dart](https://github.com/leftyio/angular_sentry/actions/workflows/dart.yml/badge.svg)](https://github.com/leftyio/angular_sentry/actions/workflows/dart.yml)\n\n# angular_sentry\n\nHelper to implements [sentry.io](https://sentry.io) with Angular.\n\n## Usage\n\n### Inject Angular Sentry\n\n```dart\nimport \"package:angular/angular.dart\";\nimport \"package:angular_sentry/angular_sentry.dart\";\n\n// ignore: uri_has_not_been_generated\nimport 'main.template.dart' as ng;\n\nconst sentryModule = Module(provide: [\n  ClassProvider(ExceptionHandler, useClass: AngularSentry),\n]);\n\n@GenerateInjector([sentryModule])\nconst scannerApp = ng.scannerApp$Injector;\n```\n\n### Init Sentry and run your app\n\n```dart\nFuture\u003cvoid\u003e main() async {\n  await Sentry.init(\n    (options) {\n      options.dsn = 'https://example@sentry.io/add-your-dsn-here';\n      options.environment = 'production';\n      options.release = '1.0.0';\n    },\n    appRunner: initApp,\n  );\n}\n\nvoid initApp() {\n  runApp(ng.AppComponentNgFactory, createInjector: scannerApp);\n}\n```\n\n### Advanced\n\nImplement your own class using AngularSentry\n\n```dart\nclass AppSentry extends AngularSentry {\n  @override\n  Event transformEvent(SentryEvent e) {\n    return super.transformEvent(e).copyWith(\n      user: SentryUser(id: '1', ipAddress: '0.0.0.0'),\n      extra: {\"location_url\": window.location.href},\n    );\n  }\n\n  @override\n  void capture(exception, [trace, String reason]) {\n    if (exception is ClientException) {\n      logError(\"Network error\");\n    } else {\n      super.capture(exception, trace, reason);\n    }\n  }\n}\n\nconst sentryModule = Module(provide: [\n  FactoryProvider(SentryClient, sentryProdider),\n  ClassProvider(ExceptionHandler, useClass: AppSentry),\n]);\n\nmain() {\n  runApp(appComponentNgFactory, createInjector: scannerApp);\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleftyio%2Fangular_sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleftyio%2Fangular_sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleftyio%2Fangular_sentry/lists"}