posthog-node
6.0.5 · 19 Nov 2026MIT23.9M / weekRepositorynpmAtom feed
5.74.0 is the newest release of 5.x.
In short
3 new1 internal
Release note
Minor Changes
node: Stamp the configured
serviceName(fromtracesormetrics) on events asservice_name
(2026-11-10)node: Add a logs API,
posthog.logger.info(...)andposthog.captureLog(...), configured with thelogsoption. Records attach the active span's trace and span ids and thewithContextdistinctId and sessionId, andserviceNamedefaults to the traces or metrics one.
(2026-11-10)node: Expose
traceIdandspanIdgetters on theSpanhandle, for correlating logs from other loggers with a trace without parsingtraceparent()
(2026-11-10)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.