Skip to content

Node docs: add CommonJS (require) guidance #854

Closed

Description

@unjica

Found by QA while verifying #851. Node docs only show ESM import usage. Add CommonJS guidance (require('@telemetry-tracker/node')), including how to await flush() in a CJS script without top-level await.

Acceptance: /docs/node has a verified CommonJS example.

Activity

  1. added
    documentation
    sdk
    on Oct 21, 2026
  2. unjica commented on Oct 23, 2026

    @unjica
    CollaboratorAuthor

    QA verification 2026-10-23 CEST, production v1.22.13 (PR #862). /docs/node now has an 'ES modules only' section with a dynamic import() CommonJS example. Ran that snippet verbatim as a .cjs file against production with published @telemetry-tracker/node 1.4.2 (Node 20.19.2): exit 0 and the event was ingested, 2/2. Verified and closed. (Native require() support remains tracked in #856.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationsdk

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions