tl;dr
If you use this package together with the other two ecosystem packages, the new meta-package node-observability-lite wires all three together with one line and three production-safe presets.
This is informational — no work required on this repo.
One-liner setup
const observability = require('node-observability-lite');
observability.express(app, {
preset: 'production',
auth: req => req.get('authorization') === `Bearer ${process.env.OPS_TOKEN}`,
});
Same shape for observability.fastify(...) and observability.koa(...).
What the production preset does
- Initialises
node-request-trace.
- Starts
node-eventloop-watchdog.
- Mounts
node-actuator-lite with /envo, /threaddump, and /heapdump` disabled by default.
- Requires an
auth function before any /actuator/* or /trace/* path is served.
- Auto-adds an
eventLoop health indicator backed by watchdog stats.
- Adds an
info.contributors.ecosystem block listing the bundled package versions.
Links
Feel free to close this issue once seen.
tl;dr
If you use this package together with the other two ecosystem packages, the new meta-package
node-observability-litewires all three together with one line and three production-safe presets.This is informational — no work required on this repo.
One-liner setup
Same shape for
observability.fastify(...)andobservability.koa(...).What the
productionpreset doesnode-request-trace.node-eventloop-watchdog.node-actuator-litewith/envo,/threaddump, and/heapdump` disabled by default.authfunction before any/actuator/*or/trace/*path is served.eventLoophealth indicator backed by watchdog stats.info.contributors.ecosystemblock listing the bundled package versions.Links
Feel free to close this issue once seen.