Skip to content

Meta-package available: node-observability-lite for one-line setup #8

@beingmartinbmc

Description

@beingmartinbmc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions