Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/observability / telemetry

telemetry

Zero-default telemetry stub.

The framework promises to make zero outbound network calls without an explicit user action. This module exists so consumers can:

  • inspect the telemetry posture from CLI / health endpoints,
  • register the reserved GRAPHORIN_TELEMETRY / GRAPHORIN_NO_PHONE_HOME environment variables for forward compatibility,
  • assert in tests that no implicit telemetry surface exists.

Attempting to enable telemetry pre-v0.2 returns a sentinel result; it never opens a socket.

Interfaces

InterfaceDescription
TelemetryStatusResult returned by getTelemetryStatus.

Functions

FunctionDescription
announceTelemetryPostureDetect the reserved env vars and emit one informational line per process. Returns the lines as an array so callers can route them to any sink they like (defaults to console.info).
enableTelemetryBest-effort enable hook. Always returns the sentinel { status: 'disabled', reason: ... } payload. Reserved for v0.2+.
getTelemetryStatusSnapshot of the telemetry posture. Reads from process.env once unless env is provided.