MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / trackCommand

Method trackCommand

packages/cli/src/telemetry.ts:121–123  ·  view source on GitHub ↗
(command: string, action: () => Promise<void> | void)

Source from the content-addressed store, hash-verified

119 }
120
121 async trackCommand(command: string, action: () => Promise<void> | void) {
122 await this.trackSpan('cli:command:start', 'cli:command:complete', 'cli:command:error', { command }, action);
123 }
124
125 async trackCli(action: () => Promise<void> | void) {
126 await this.trackSpan('cli:start', 'cli:complete', 'cli:error', {}, action);

Callers 9

generateActionFunction · 0.80
migrateActionFunction · 0.80
dbActionFunction · 0.80
infoActionFunction · 0.80
initActionFunction · 0.80
checkActionFunction · 0.80
formatActionFunction · 0.80
seedActionFunction · 0.80
proxyActionFunction · 0.80

Calls 1

trackSpanMethod · 0.95

Tested by

no test coverage detected