track
TrackInputβ
Defined in: track.ts:11
Extendsβ
Omit<PayloadInput,"noStateBefore">
Propertiesβ
cli?β
optional cli?: CliOptions;
Defined in: payload.ts:24
Inherited fromβ
config?β
optional config?: ConfigOptions;
Defined in: payload.ts:23
Inherited fromβ
durationMs?β
optional durationMs?: number;
Defined in: payload.ts:30
Inherited fromβ
env?β
optional env?: ProcessEnv;
Defined in: payload.ts:34
Inherited fromβ
errorType?β
optional errorType?: string;
Defined in: payload.ts:31
Inherited fromβ
event?β
optional event?: TelemetryEvent;
Defined in: payload.ts:17
Inherited fromβ
graphqlMajor?β
optional graphqlMajor?: unknown;
Defined in: payload.ts:22
versionInfo.major of the loaded graphql.
Inherited fromβ
mode?β
optional mode?: "scaffold" | "wire";
Defined in: payload.ts:27
Inherited fromβ
onFullNotice?β
optional onFullNotice?: (notice) => void;
Defined in: track.ts:17
Receives the full notice instead of stderr (e.g. a prompt UI).
Parametersβ
noticeβ
string
Returnsβ
void
option?β
optional option?: boolean;
Defined in: track.ts:13
Value of the telemetry option.
pages?β
optional pages?: number;
Defined in: payload.ts:29
Generate events only.
Inherited fromβ
pkgβ
pkg: string;
Defined in: payload.ts:19
Inherited fromβ
pkgVersionβ
pkgVersion: string;
Defined in: payload.ts:20
Inherited fromβ
statePath?β
optional statePath?: string;
Defined in: track.ts:15
Override of the telemetry.json location (tests).
target?β
optional target?: string;
Defined in: payload.ts:26
Create events only.
Inherited fromβ
triggerβ
trigger: TelemetryTrigger;
Defined in: payload.ts:18
Inherited fromβ
encodeBody()β
function encodeBody(json): object;
Defined in: track.ts:21
Builds the request body, gzipped above the size threshold.
Parametersβ
jsonβ
string
Returnsβ
object
bodyβ
body: BodyInit;
headersβ
headers: Record<string, string>;
track()β
function track(input): Promise<void>;
Defined in: track.ts:37
Sends one anonymous config event. Never throws and never rejects.
Parametersβ
inputβ
Returnsβ
Promise<void>