I'm trying to use HyperDX with Pino and the instructions in the docs don't compile
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 9.9k
- Forks
- 471
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 117
Description
I'm following the instructions here:
https://www.hyperdx.io/docs/install/javascript
const logger = pino(
pino.transport({
mixin: HyperDX.getPinoMixinFunction,
targets: [
HyperDX.getPinoTransport('info', { // Send logs info and above
detectResources: true,
}),
],
}),
);
I can't get this to compile with the latest 10.1.0 version of pino. I suppose the mixin option has been removed or moved somewhere in a new version of pino?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the JavaScript installation documentation at https://www.hyperdx.io/docs/install/javascript and reproduce the snippet using Pino 10.1.0. Check the current Pino API around mixin and transport configuration; done means the documented HyperDX example compiles with that version or clearly states the supported setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation, observability-sre
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100