Skip to content

Commit

Permalink
docs(transports): add axiom #1753 (#1754)
Browse files Browse the repository at this point in the history
* docs(transports): add axiom  #1753

* Update transports.md
  • Loading branch information
qlaffont authored Jul 27, 2023
1 parent f9ea424 commit 98375bc
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docs/transports.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ PRs to this document are welcome for any new transports!
+ [pino-sentry-transport](#pino-sentry-transport)
+ [pino-airbrake-transport](#pino-airbrake-transport)
+ [pino-datadog-transport](#pino-datadog-transport)
+ [pino-slack-webhook](#pino-slack-webhook)
+ [pino-slack-webhook](#pino-slack-webhook)
+ [pino-axiom](#pino-axiom)
### Legacy
Expand Down Expand Up @@ -934,6 +935,26 @@ pino(transport)
[pino-pretty]: https://github.com/pinojs/pino-pretty
For full documentation of command line switches read the [README](https://github.com/abeai/pino-websocket#readme).
<a id="pino-axiom"></a>
### pino-axiom
[pino-axiom](https://www.npmjs.com/package/pino-axiom) is a transport that will forward logs to [Axiom](https://axiom.co).
```javascript
const pino = require('pino')
const transport = pino.transport({
target: 'pino-axiom',
options: {
orgId: 'YOUR-ORG-ID',
token: 'YOUR-TOKEN',
dataset: 'YOUR-DATASET',
},
})
pino(transport)
```
<a id="communication-between-pino-and-transport"></a>
## Communication between Pino and Transports
Here we discuss some technical details of how Pino communicates with its [worker threads](https://nodejs.org/api/worker_threads.html).
Expand Down

0 comments on commit 98375bc

Please sign in to comment.