{"id":16430161,"url":"https://github.com/its-alex/winston-node-sentry","last_synced_at":"2025-12-24T20:18:46.781Z","repository":{"id":34083652,"uuid":"169544728","full_name":"Its-Alex/winston-node-sentry","owner":"Its-Alex","description":"Sentry transport for winston 3.0.0","archived":false,"fork":false,"pushed_at":"2022-12-04T17:27:13.000Z","size":625,"stargazers_count":8,"open_issues_count":13,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T17:48:21.713Z","etag":null,"topics":["nodejs","sentry","transport","winston"],"latest_commit_sha":null,"homepage":null,"language":"PLpgSQL","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/Its-Alex.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":"2019-02-07T09:06:02.000Z","updated_at":"2020-07-17T14:59:53.000Z","dependencies_parsed_at":"2023-01-15T04:32:37.509Z","dependency_job_id":null,"html_url":"https://github.com/Its-Alex/winston-node-sentry","commit_stats":null,"previous_names":["its-alex/winston-sentry"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Its-Alex/winston-node-sentry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fwinston-node-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fwinston-node-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fwinston-node-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fwinston-node-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Its-Alex","download_url":"https://codeload.github.com/Its-Alex/winston-node-sentry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Fwinston-node-sentry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28007846,"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-12-24T02:00:07.193Z","response_time":83,"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":["nodejs","sentry","transport","winston"],"created_at":"2024-10-11T08:25:56.106Z","updated_at":"2025-12-24T20:18:46.767Z","avatar_url":"https://github.com/Its-Alex.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# winston-node-sentry\n\nThis project aim to create a transport for winston 3.0.0 that send error to\nsentry.\n\n## How to use\n\n## Example\n\n```javascript\nimport winston from 'winston'\nimport { SentryTransport } from 'winston-node-sentry'\n\nlet opts = {\n    level: 'info',\n    sentryOpts: {\n        dsn: 'YOUR-DSN'\n    }\n}\n\nconst logger = winston.createLogger({\n  level: 'info',\n  format: winston.format.json(),\n  defaultMeta: { service: 'user-service' },\n  transports: [\n    new SentryTransport(opts)\n  ]\n})\n```\n\nSome default behavor is set feel free to see [in code](srcs/index.ts#L14)\n\n### Options\n\nYou can pass some options to SentryTransport\n\n```javascript\n{\n    debug: false,\n    level: 'info',\n    init: true,\n    sentry: NodeSentryModule,\n    sentryOpts: {},\n    sentryScope: (scope) =\u003e {}\n}\n```\n\nPer `options` variable above, here are the default options provided:\n\nTransport related options:\n\n- `name` (String) - transport's name (defaults to `winston-sentry-logger`)\n- `level` (String) - transport's level of messages to log (defaults to `error`)\n- `init` (Boolean) - true if transport must init sentry (defaults to `true`)\n- `debug` (Boolean) - used to log each action of logger and error (defaults\n  to `false`)\n- `sentryScope` (Function) - default custom scope function that can be set by\n  winston-node-sentry when it init `@node/sentry` (no default)\n\n### Default Sentry Options (`options.sentryOps`)\n\n- `logger` (String) - defaults to `winston-sentry-log`\n- `server_name` (String) - defaults to `process.env.SENTRY_NAME` or\n  `os.hostname()`\n- `release` (String) - defaults to `process.env.SENTRY_RELEASE`\n- `environment` (String) - defaults to `process.env.SENTRY_ENVIRONMENT`)\n- `modules` (Object) - defaults to `package.json` dependencies\n- `extra` (Object) - no default value\n- `fingerprint` (Array) - no default value\n\nFor a full list of Sentry options, please visit\n\u003chttps://docs.sentry.io/clients/node/config/\u003e.\n\n## Development\n\n### Start\n\nFirst of all you must install package\n\n```\n$ yarn install\n```\n\nYou can build source to javascript\n\n```\n$ yarn build\n```\n\nor you can generate sourceMap with it\n\n```\n$ yarn build:debug\n```\n\nWhen you're working on this module you can watch it\n\n```\n$ yarn watch\n```\n\n## Tests\n\n### Requirements\n\n- Docker\n- Python\n\n\n### Manual\n\nYou can test if this modules works with sentry instance inside this repository\n\nStart sentry instance\n\n```\n$ ./sentry/scripts/up.sh\n```\n\nGet sentry DSN\n\n```\n$ ./sentry/display-sentry-dsn.sh\n```\n\nCopy DSN inside [test file](/__tests__/base.ts#L12)\n\nAnd execute tests\n\n```\n$ yarn test\n```\n\n## Workflow\n\nThis is written in typescript and use standard linter.\n\n### Linter\n\nWe use `ts-lint` as linter with standard configuration, please if you submit\nany pull respect lint you can check it\n\n```\n$ npm run lint\n```\n\n## License\n\n[MIT](https://en.wikipedia.org/wiki/MIT_License)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fits-alex%2Fwinston-node-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fits-alex%2Fwinston-node-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fits-alex%2Fwinston-node-sentry/lists"}