Do not track compile in posthog metrics

This commit is contained in:
Masen Furer 2025-01-21 12:42:44 -08:00
parent 4dc106545b
commit 768822a5a1
No known key found for this signature in database
GPG Key ID: B0008AD22B3B3A95

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