MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / buildAutomationTelemetryEnv

Function buildAutomationTelemetryEnv

scripts/dev-with-automation.mjs:758–774  ·  view source on GitHub ↗
(env = process.env)

Source from the content-addressed store, hash-verified

756}
757
758function buildAutomationTelemetryEnv(env = process.env) {
759 const telemetryDisabled = env.VITE_DO_NOT_TRACK === "1";
760 const apiKey =
761 env.AUTOMATION_POSTHOG_API_KEY ||
762 env.VITE_POSTHOG_API_KEY ||
763 (telemetryDisabled ? "" : DEFAULT_POSTHOG_API_KEY);
764
765 if (!apiKey) return {};
766
767 return {
768 AUTOMATION_POSTHOG_API_KEY: apiKey,
769 AUTOMATION_POSTHOG_HOST:
770 env.AUTOMATION_POSTHOG_HOST ||
771 env.VITE_POSTHOG_HOST ||
772 DEFAULT_POSTHOG_HOST,
773 };
774}
775
776function startAgentServer(config) {
777 logService(

Callers 3

startAutomationBackendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected