From 818788da633c6cf28eac3045d8d00267f564ffd8 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Wed, 22 Jan 2025 15:23:34 -0800 Subject: [PATCH] Do not track compile in posthog metrics (#4669) --- reflex/app_module_for_backend.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/reflex/app_module_for_backend.py b/reflex/app_module_for_backend.py index b0ae0a29f..28be30410 100644 --- a/reflex/app_module_for_backend.py +++ b/reflex/app_module_for_backend.py @@ -5,14 +5,12 @@ Only the app attribute is explicitly exposed. from concurrent.futures import ThreadPoolExecutor from reflex import constants -from reflex.utils import telemetry from reflex.utils.exec import is_prod_mode from reflex.utils.prerequisites import get_and_validate_app if constants.CompileVars.APP != "app": raise AssertionError("unexpected variable name for 'app'") -telemetry.send("compile") app, app_module = get_and_validate_app(reload=False) # For py3.9 compatibility when redis is used, we MUST add any decorator pages # before compiling the app in a thread to avoid event loop error (REF-2172). @@ -31,6 +29,5 @@ del app_module del compile_future del get_and_validate_app del is_prod_mode -del telemetry del constants del ThreadPoolExecutor