diff --git a/src/apphosting/yaml.ts b/src/apphosting/yaml.ts index febca9628b3..3090edc9e39 100644 --- a/src/apphosting/yaml.ts +++ b/src/apphosting/yaml.ts @@ -69,6 +69,10 @@ export class AppHostingYamlConfig { this._secrets.set(secret.variable, secret); } + resetSecrets() { + this._secrets.clear(); + } + /** * Merges this AppHostingYamlConfig with another config, the incoming config * has precedence if there are any conflicting configurations. diff --git a/src/emulator/apphosting/index.ts b/src/emulator/apphosting/index.ts index 65b064f6df3..c95fe821a68 100644 --- a/src/emulator/apphosting/index.ts +++ b/src/emulator/apphosting/index.ts @@ -1,3 +1,4 @@ +import { trackGA4 } from "../../track"; import { EmulatorInfo, EmulatorInstance, Emulators } from "../types"; import { start as apphostingStart } from "./serve"; import { logger } from "./developmentServer"; @@ -23,6 +24,8 @@ export class AppHostingEmulator implements EmulatorInstance { }); this.args.options.host = hostname; this.args.options.port = port; + + void trackGA4("apphosting_backends_emulated", {}); } connect(): Promise { diff --git a/src/track.ts b/src/track.ts index 6dfd947f3a7..0a1681a7464 100644 --- a/src/track.ts +++ b/src/track.ts @@ -19,7 +19,8 @@ type cliEventNames = | "extensions_emulated" | "function_deploy" | "codebase_deploy" - | "function_deploy_group"; + | "function_deploy_group" + | "apphosting_backends_emulated"; type GA4Property = "cli" | "emulator" | "vscode"; interface GA4Info { measurementId: string;