Skip to content

Commit

Permalink
Introducing Aibrake transport (#1481)
Browse files Browse the repository at this point in the history
* Introducing Aibrake transport

* fix typo
  • Loading branch information
enricodeleo committed Jul 1, 2022
1 parent 31f7cd6 commit cca09f1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/transports.md
Expand Up @@ -380,6 +380,7 @@ PR's to this document are welcome for any new transports!
+ [pino-loki](#pino-loki)
+ [pino-seq-transport](#pino-seq-transport)
+ [pino-sentry-transport](#pino-sentry-transport)
+ [pino-airbrake-transport](#pino-airbrake-transport)
### Legacy
Expand Down Expand Up @@ -724,6 +725,34 @@ pino(transport)
[pino-sentry-transport]: https://github.com/tomer-yechiel/pino-sentry-transport
[Sentry]: https://sentry.io/
<a id="pino-airbrake-transport"></a>
### pino-airbrake-transport
[pino-airbrake-transport][pino-airbrake-transport] is a Pino v7+ compatible transport to forward log events to [Airbrake][Airbrake]
from a dedicated worker:
```js
const pino = require('pino')
const transport = pino.transport({
target: 'pino-airbrake-transport',
options: {
airbrake: {
projectId: 1,
projectKey: "REPLACE_ME",
environment: "production",
// aditional options for airbrake
performanceStats: false,
},
},
level: "error", // minimum log level that should be sent to airbrake
})
pino(transport)
```
[pino-airbrake-transport]: https://github.com/enricodeleo/pino-airbrake-transport
[Airbrake]: https://airbrake.io/
<a id="pino-socket"></a>
### pino-socket
Expand Down

0 comments on commit cca09f1

Please sign in to comment.