chore: add analytics event for ai experiments (#4224)

This commit is contained in:
Akash K
2024-07-30 18:55:09 +05:30
committed by GitHub
parent adb7782b58
commit 40f93fc7f4
3 changed files with 14 additions and 0 deletions

View File

@@ -115,6 +115,11 @@ const generateRequestName = async () => {
isGenerateRequestNamePending.value = true
platform.analytics?.logEvent({
type: "EXPERIMENTS_GENERATE_REQUEST_NAME_WITH_AI",
platform: "rest",
})
const result = await generateRequestNameForPlatform(
JSON.stringify(props.requestContext)
)

View File

@@ -114,6 +114,11 @@ const generateRequestName = async () => {
isGenerateRequestNamePending.value = true
platform.analytics?.logEvent({
type: "EXPERIMENTS_GENERATE_REQUEST_NAME_WITH_AI",
platform: "gql",
})
const result = await generateRequestNameForPlatform(
JSON.stringify(props.requestContext)
)