mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-19 08:28:06 +02:00
feat: emit ingest and scan telemetry
This commit is contained in:
parent
1b7c9fcdba
commit
31efe1011d
5 changed files with 162 additions and 3 deletions
|
|
@ -101,7 +101,12 @@ export async function emitProjectStackSnapshot(input: {
|
|||
}
|
||||
emittedProjectSnapshots.add(input.projectDir);
|
||||
|
||||
const project = await loadKtxProject({ projectDir: input.projectDir });
|
||||
let project: Awaited<ReturnType<typeof loadKtxProject>>;
|
||||
try {
|
||||
project = await loadKtxProject({ projectDir: input.projectDir });
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
await emitTelemetryEvent({
|
||||
name: 'project_stack_snapshot',
|
||||
fields: await buildProjectStackSnapshotFields(project),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue