From e9fe53c6117505d2c2feb52f642b2b6a34c907f6 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Fri, 18 Oct 2024 16:38:51 -0700 Subject: [PATCH] [ENH]: disable Posthog profiles (#2974) --- chromadb/telemetry/product/posthog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chromadb/telemetry/product/posthog.py b/chromadb/telemetry/product/posthog.py index 05c46b07256..b07a3ab1903 100644 --- a/chromadb/telemetry/product/posthog.py +++ b/chromadb/telemetry/product/posthog.py @@ -11,6 +11,8 @@ logger = logging.getLogger(__name__) +POSTHOG_EVENT_SETTINGS = {"$process_person_profile": False} + class Posthog(ProductTelemetryClient): def __init__(self, system: System): @@ -53,7 +55,7 @@ def _direct_capture(self, event: ProductTelemetryEvent) -> None: posthog.capture( self.user_id, event.name, - {**event.properties, **self.context}, + {**event.properties, **POSTHOG_EVENT_SETTINGS, **self.context}, ) except Exception as e: logger.error(f"Failed to send telemetry event {event.name}: {e}")