MCPcopy Index your code
hub / github.com/thesysdev/openui / capture

Method capture

packages/openui-cli/src/lib/telemetry.ts:119–130  ·  view source on GitHub ↗
(event: string, properties: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

117 }
118
119 capture(event: string, properties: Record<string, unknown> = {}) {
120 if (!this.enabled || !this.client) return;
121 try {
122 this.client.capture({
123 distinctId: this.distinctId,
124 event,
125 properties: { ...this.superProps, ...properties },
126 });
127 } catch {
128 /* telemetry must never throw */
129 }
130 }
131
132 async shutdown() {
133 if (!this.enabled || !this.client) return;

Callers 5

index.tsFile · 0.80
runGenerateFunction · 0.80
runCreateAppFunction · 0.80
writeCloudEnvFunction · 0.80
handleCliErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected