Sanity Library Reference Docs
    Preparing search index...
    • Build the consent/transport pair a shell's batched store runs on. Consent is the account-level status from the authenticated client — anything but granted (including a fetch error) means the store sends nothing. denied short-circuits without a request: process shells resolve their environment denial (see isTelemetryEnvDenied) once and pass it here; browser shells omit it.

      Parameters

      • args: {
            client: TelemetryIntakeClient;
            context?: Record<string, unknown>;
            denied?: boolean;
            projectId: string;
        }
        • client: TelemetryIntakeClient
        • Optionalcontext?: Record<string, unknown>

          Context merged into every event at send time. These values win on key collisions.

        • Optionaldenied?: boolean
        • projectId: string

      Returns TelemetryIntake