{"id":29741127,"url":"https://github.com/pointblankdev/apollo-plugin-sentry","last_synced_at":"2026-04-19T03:03:54.961Z","repository":{"id":57137488,"uuid":"414645305","full_name":"pointblankdev/apollo-plugin-sentry","owner":"pointblankdev","description":"TBD","archived":false,"fork":false,"pushed_at":"2021-10-14T23:12:06.000Z","size":134,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T06:21:03.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/pointblankdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-07T14:57:59.000Z","updated_at":"2021-12-07T14:51:12.000Z","dependencies_parsed_at":"2022-09-01T04:01:05.765Z","dependency_job_id":null,"html_url":"https://github.com/pointblankdev/apollo-plugin-sentry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pointblankdev/apollo-plugin-sentry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblankdev%2Fapollo-plugin-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblankdev%2Fapollo-plugin-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblankdev%2Fapollo-plugin-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblankdev%2Fapollo-plugin-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pointblankdev","download_url":"https://codeload.github.com/pointblankdev/apollo-plugin-sentry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pointblankdev%2Fapollo-plugin-sentry/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268378807,"owners_count":24240896,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-07-26T01:01:03.053Z","updated_at":"2026-04-19T03:03:54.925Z","avatar_url":"https://github.com/pointblankdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apollo-Plugin-Sentry\n\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\u003ca href=\"https://gitmoji.dev\"\u003e\n\u003cimg  style=\"border-radius: 3px;\" src=\"https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=flat-square\" alt=\"Gitmoji\"\u003e\n\u003c/a\u003e\n\n\u003cbr/\u003e\n\nAn Apollo Plugin for Sentry Monitoring 🔍\n\n[Tracking Errors in Apollo GraphQL with Sentry](https://medium.com/@mahyor.sam/tracking-errors-in-apollo-graphql-with-sentry-549ae52c0c76)\n\n\u003cbr/\u003e\n\n## How it works\n\nApollo server uses lifecycle events, enabling us to easily instrument an app for sentry integration.\n\nHere's a visual diagram of the flow of lifecycle events. Learn more at the [Apollo Plugin Docs 📚](https://www.apollographql.com/docs/apollo-server/integrations/plugins/)\n\n![Lifecycle Events Diagram](apollo-hooks-diagram.png)\n\n\u003cbr/\u003e\n\n## Install\n\n```bash\n# yarn\nyarn add @pointblankdev/apollo-plugin-sentry\n\n# npm\nnpm install @pointblankdev/apollo-plugin-sentry\n```\n\n\u003cbr/\u003e\n\n## Usage\n\n- To get started, you need to have a Sentry DSN which you can get [here](https://sentry,io). This value should be assigned to the `SENTRY_DSN` environment variable.\n- Make sure you have the `ENV` variable set so Sentry knows which environment to use for tracking your errors\n\n###### Pre 0.0.6\n\n- Import the package and pass an array containing the variable to the plugin options of your Apollo Server and you're good to go 🚀\n\n  ```\n  const {\n    sentryPlugin,\n  } = require('@pointblankdev/apollo-plugin-sentry');\n  ```\n\n  ```bash\n  const server = new ApolloServer({\n      ...,\n      plugins: [sentryPlugin],\n  });\n  ```\n\n###### \u003e= 0.0.6\n\n- Import the package, initialize it by calling it with an optional service name, pass the result to the plugin options of your Apollo Server and you're good to go\n\n  ```bash\n  const {\n    sentryPlugin,\n  } = require('@pointblankdev/apollo-plugin-sentry');\n\n  const plugin = sentryPlugin('my-repo');\n  ```\n\n  ```bash\n  const server = new ApolloServer({\n      ...,\n      plugins: [plugin],\n  });\n  ```\n\n- The service name is added as a `service_name` tag in your error reporting, therefore making it much easier to identify individual services at first glance when you have a project that serves multiple services.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointblankdev%2Fapollo-plugin-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpointblankdev%2Fapollo-plugin-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpointblankdev%2Fapollo-plugin-sentry/lists"}