@graphprotocol/pino-sentry-simple
TypeScript icon, indicating that this package has built-in type declarations

0.7.1 • Public • Published

@graphprotocol/pino-sentry-simple

Forward pino logs to Sentry. A fork of pino-sentry with a few simplifications and error object handling via the err key.

Index

Install

npm install @graphprotocol/pino-sentry-simple -g

Usage

import { createWriteStream } from '@graphprotocol/pino-sentry-simple'

const opts = { /* ... */ }
const stream = createWriteStream({
  dsn: process.env.SENTRY_DSN,
  tagKeys: ['requestId'],    // optional
  excludeKeys: ['username'], // optional
})
const logger = pino(opts, stream)

License

MIT License

Package Sidebar

Install

npm i @graphprotocol/pino-sentry-simple

Weekly Downloads

675

Version

0.7.1

License

MIT

Unpacked Size

29.3 kB

Total Files

15

Last publish

Collaborators

  • andras_en
  • migueldeelias
  • saihaj
  • pcarranzav_edgeandnode
  • edge-and-node
  • lnsd
  • neysofu
  • tmigone
  • dotansimha
  • nasmr
  • benface
  • jannispohlmann
  • fordn
  • lutter
  • zerim
  • martintel
  • abarmat
  • jcarpanelli
  • juanmardefago
  • dnfodjo
  • theodus
  • iain_mccown
  • cmwhited
  • adam-en
  • schmidsi