Skip to content

Commit

Permalink
Add target profile to QIR generation telemetry event (#1658)
Browse files Browse the repository at this point in the history
This change adds a new property to the `GenerateQirStart` telemetry
event to provide data about the selected target profile.
  • Loading branch information
cesarzc authored Jun 26, 2024
1 parent 21a2961 commit 159bb40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion vscode/src/qirGeneration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export async function getQirForActiveWindow(
try {
const associationId = getRandomGuid();
const start = performance.now();
sendTelemetryEvent(EventType.GenerateQirStart, { associationId }, {});
sendTelemetryEvent(
EventType.GenerateQirStart,
{ associationId, targetProfile },
{},
);

// Override the program config with the new target profile (if updated above)
config.profile = getTarget();
Expand Down
2 changes: 1 addition & 1 deletion vscode/src/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type EventTypes = {
measurements: { timeToCompletionMs: number; completionListLength: number };
};
[EventType.GenerateQirStart]: {
properties: { associationId: string };
properties: { associationId: string; targetProfile: string };
measurements: Empty;
};
[EventType.GenerateQirEnd]: {
Expand Down

0 comments on commit 159bb40

Please sign in to comment.