Do not track compile in posthog metrics (#4669)

This commit is contained in:
Masen Furer 2025-01-22 15:23:34 -08:00 committed by GitHub
parent 0139cab13f
commit 818788da63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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