{"id":22413366,"url":"https://github.com/rokid/egg-raven","last_synced_at":"2026-04-27T23:39:52.146Z","repository":{"id":57220730,"uuid":"125312916","full_name":"rokid/egg-raven","owner":"rokid","description":"A sentry/raven plugin to egg","archived":false,"fork":false,"pushed_at":"2018-03-15T08:06:46.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-26T12:38:07.824Z","etag":null,"topics":["egg","eggjs","plugin","raven","sentry"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rokid.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-03-15T04:38:50.000Z","updated_at":"2022-07-17T08:41:53.000Z","dependencies_parsed_at":"2022-08-29T04:01:46.584Z","dependency_job_id":null,"html_url":"https://github.com/rokid/egg-raven","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokid%2Fegg-raven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokid%2Fegg-raven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokid%2Fegg-raven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokid%2Fegg-raven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rokid","download_url":"https://codeload.github.com/rokid/egg-raven/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245776200,"owners_count":20670280,"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":["egg","eggjs","plugin","raven","sentry"],"created_at":"2024-12-05T14:12:40.954Z","updated_at":"2026-04-27T23:39:49.269Z","avatar_url":"https://github.com/rokid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egg-raven\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-raven.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-raven\n[travis-image]: https://img.shields.io/travis/Rokid/egg-raven.svg?style=flat-square\n[travis-url]: https://travis-ci.org/Rokid/egg-raven\n[codecov-image]: https://img.shields.io/codecov/c/github/Rokid/egg-raven.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/Rokid/egg-raven?branch=master\n[david-image]: https://img.shields.io/david/Rokid/egg-raven.svg?style=flat-square\n[david-url]: https://david-dm.org/Rokid/egg-raven\n[snyk-image]: https://snyk.io/test/npm/egg-raven/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-raven\n[download-image]: https://img.shields.io/npm/dm/egg-raven.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-raven\n\n\u003c!--\nDescription here.\n--\u003e\n\n## Install\n\n```bash\n$ npm i egg-raven --save\n```\n\n## Usage\n\n```js\n// {app_root}/config/plugin.js\nexports.raven = {\n  enable: true,\n  package: 'egg-raven',\n}\n```\n\n## Configuration\n\n```js\n// {app_root}/config/config.default.js\nexports.raven = {\n  dsn: 'https://your:very_secure@sentry.server/app_id',\n  options: {\n    // refer to https://docs.sentry.io/clients/node/config/#optional-settings for more options detail.\n    autoBreadcrumbs: {\n      http: true\n    },\n    release: '721e41770371db95eee98ca2707686226b993eda'\n  }\n}\n```\n\nsee [config/config.default.js](config/config.default.js) for more detail.\n\n## Example\n\n```js\n// app/controller/home.js\nconst { Controller } = require('egg')\n\nclass HomeController extends Controller {\n\n  async index () {\n    this.ctx.raven.captureBreadcrumb({\n      message: 'Received payment confirmation',\n      category: 'payment',\n      data: {\n        amount: 312\n      }\n    })\n    this.ctx.runInBackground(async function backgroundJob () {\n      throw new Error('will be recorded into sentry with breadcrumbs')\n    })\n  }\n\n  async update() {\n    throw new Error('will be recorded into sentry with detailed context')\n  }\n\n}\n\nmodule.exports = HomeController\n```\n\n## Questions \u0026 Suggestions\n\nPlease open an issue [here](https://github.com/Rokid/egg-raven/issues).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokid%2Fegg-raven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frokid%2Fegg-raven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokid%2Fegg-raven/lists"}