feat: Add telemetry event 'User clicked AI error helper button' (no-changelog) (#9096)

This commit is contained in:
Tomi Turtiainen 2024-04-09 14:33:15 +03:00 committed by GitHub
parent aa1370469e
commit 8c2622549b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,6 +129,15 @@ const prepareRawMessages = computed(() => {
async function onDebugError() {
try {
isLoadingErrorDebugging.value = true;
telemetry.track(
'User clicked AI error helper button',
{
node_type: props.error.node?.type,
error_title: props.error.message,
},
{ withPostHog: true },
);
const { message } = await aiStore.debugError({ error: props.error });
errorDebuggingMessage.value = message;
} catch (error) {