mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 11:25:06 +03:00
feat(sql-editor): telemetry for ai suggestion create events
This commit is contained in:
1 parent
0e55ffab53
commit
f6240a2db8
1 file changed
+10
@@ -182,6 +182,16 @@ const SQLTemplates = observer(() => {
|
||||
})
|
||||
|
||||
await handleNewQuery(formattedSql, title)
|
||||
|
||||
Telemetry.sendEvent(
|
||||
{
|
||||
category: 'sql_editor',
|
||||
action: 'ai_suggestion_created',
|
||||
label: 'create_snippet',
|
||||
},
|
||||
telemetryProps,
|
||||
router
|
||||
)
|
||||
} catch (error: unknown) {
|
||||
if (isError(error)) {
|
||||
ui.setNotification({
|
||||
|
||||
Reference in new issue
Block a user