{"library":"pino-sentry","title":"pino-sentry","description":"A transport (stream) for the pino logger that sends logs to Sentry via @sentry/node. Current stable version 0.15.0 supports pino v7+ and Sentry SDK v7. It works as a CLI tool or programmatic stream, exposing both createWriteStream and the Sentry instance directly. Release cadence is sporadic. Key differentiators: lightweight, simple integration, and exposes the underlying Sentry instance for advanced usage. Requires Node >=10 and @sentry/node as a peer dependency. Self-hosted Sentry users must be on 20.6.0+ with Sentry SDK v7.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install pino-sentry"],"cli":null},"imports":["import { createWriteStream } from 'pino-sentry'","import { Sentry } from 'pino-sentry'","import { Severity } from 'pino-sentry'","const { createWriteStream } = require('pino-sentry')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { createWriteStream } from 'pino-sentry';\nimport pino from 'pino';\n\nconst stream = createWriteStream({\n  dsn: process.env.SENTRY_DSN ?? '',\n  environment: process.env.NODE_ENV ?? 'production',\n  level: 'info',\n  maxBreadcrumbs: 50,\n});\n\nconst logger = pino({ level: 'info' }, stream);\n\nlogger.info({ msg: 'Hello from pino-sentry' });\nlogger.error({ err: new Error('Test error') }, 'Error occurred');","lang":"typescript","description":"Configures pino-sentry with a DSN and pino instance, logs a message and an error sent to Sentry.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}