Skip to content

Commit

Permalink
Add documentation regard pino-sentry-transport (#1464)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomer Yechiel <tomery@metisdata.io>
  • Loading branch information
tomer-yechiel and tomery-metisdata authored Jun 17, 2022
1 parent b31a494 commit b7a17a9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/transports.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ PR's to this document are welcome for any new transports!
+ [pino-pretty](#pino-pretty)
+ [pino-loki](#pino-loki)
+ [pino-seq-transport](#pino-seq-transport)
+ [pino-sentry-transport](#pino-sentry-transport)
### Legacy
Expand Down Expand Up @@ -701,6 +702,28 @@ pino(transport)
[pino-seq-transport]: https://github.com/autotelic/pino-seq-transport
[Seq]: https://datalust.co/seq
<a id="pino-sentry-transport"></a>
### pino-sentry-transport
[pino-sentry-transport][pino-sentry-transport] is a Pino v7+ compatible transport to forward log events to [Sentry][Sentry]
from a dedicated worker:
```js
const pino = require('pino')
const transport = pino.transport({
target: 'pino-sentry-transport',
options: {
sentry: {
dsn: 'https://******@sentry.io/12345',
}
}
})
pino(transport)
```
[pino-sentry-transport]: https://github.com/tomer-yechiel/pino-sentry-transport
[Sentry]: https://sentry.io/
<a id="pino-socket"></a>
### pino-socket
Expand Down

0 comments on commit b7a17a9

Please sign in to comment.