Skip to content

Commit

Permalink
[ENH]: disable Posthog profiles (#2974)
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb authored Oct 18, 2024
1 parent bc26b0a commit e9fe53c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chromadb/telemetry/product/posthog.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

logger = logging.getLogger(__name__)

POSTHOG_EVENT_SETTINGS = {"$process_person_profile": False}


class Posthog(ProductTelemetryClient):
def __init__(self, system: System):
Expand Down Expand Up @@ -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}")

0 comments on commit e9fe53c

Please sign in to comment.