Skip to content

Commit

Permalink
{wip} [editor] add telemetry for more events
Browse files Browse the repository at this point in the history
As discussed offline, we want to enable telemetry in the local editor for the following events:

- RUN_PROMPT_START
- RUN_PROMPT_CANCEL
- RUN_PROMPT_ERROR
- RUN_PROMPT_SUCCESS

This diff implements the logging telemetry for those events.

Next up will be adding "mode" to logs

## Testplan
  • Loading branch information
Ankush Pala ankush@lastmileai.dev committed Jan 16, 2024
1 parent 72d0879 commit 1ce640b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/aiconfig/editor/client/src/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ export function aiConfigToClientConfig(aiconfig: AIConfig): ClientAIConfig {
};
}

export type LogEvent = "ADD_PROMPT" | "SAVE_BUTTON_CLICKED";
export type LogEvent = "ADD_PROMPT" | "SAVE_BUTTON_CLICKED" | "RUN_PROMPT_CANCEL" | "RUN_PROMPT_CANCEL" | "RUN_PROMPT_ERROR" | "RUN_PROMPT_SUCCESS";
// TODO: schematize this
export type LogEventData = JSONObject;

0 comments on commit 1ce640b

Please sign in to comment.