Skip to content

Commit 8813bcc

Browse files
committed
Revert "identify app_class in telemetry events (#5374)" (#5383)
This reverts commit 5ecc8e9.
1 parent d41fa72 commit 8813bcc

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

reflex/utils/telemetry.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,6 @@ def get_reflex_version() -> str:
6767
return constants.Reflex.VERSION
6868

6969

70-
def _get_app_class_name() -> str | None:
71-
"""Get the app class name if available.
72-
73-
Returns:
74-
The app class name (e.g. "App", "AppEnterprise") or None if not available.
75-
"""
76-
try:
77-
from reflex.utils.prerequisites import get_and_validate_app
78-
79-
app_info = get_and_validate_app()
80-
except Exception:
81-
return None
82-
else:
83-
return app_info.app.__class__.__name__
84-
85-
8670
def get_cpu_count() -> int:
8771
"""Get the number of CPUs.
8872
@@ -213,16 +197,12 @@ def _prepare_event(event: str, **kwargs) -> _Event | None:
213197
if not event_data:
214198
return None
215199

216-
additional_keys = ["template", "context", "detail", "user_uuid", "app_class"]
200+
additional_keys = ["template", "context", "detail", "user_uuid"]
217201

218202
properties = event_data["properties"]
219203

220-
# Auto-detect app class if not provided
221-
if "app_class" not in kwargs:
222-
kwargs["app_class"] = _get_app_class_name()
223-
224204
for key in additional_keys:
225-
if key in properties or key not in kwargs or kwargs[key] is None:
205+
if key in properties or key not in kwargs:
226206
continue
227207

228208
properties[key] = kwargs[key]

0 commit comments

Comments
 (0)