chore: add analytics event for ai experiments (#4224)
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
|
||||
@@ -63,6 +63,10 @@ export type AnalyticsEvent =
|
||||
| ({
|
||||
type: "HOPP_SPOTLIGHT_SESSION"
|
||||
} & HoppSpotlightSessionEventData)
|
||||
| {
|
||||
type: "EXPERIMENTS_GENERATE_REQUEST_NAME_WITH_AI"
|
||||
platform: "rest" | "gql"
|
||||
}
|
||||
|
||||
export type AnalyticsPlatformDef = {
|
||||
initAnalytics: () => void
|
||||
|
||||
Reference in New Issue
Block a user