From 8ab774eaa0bd89d6317569a05a85d4e2bfb94126 Mon Sep 17 00:00:00 2001 From: Jay Chia Date: Tue, 20 Feb 2024 09:26:07 -0800 Subject: [PATCH] [CHORE] Update segment endpoint --- daft/analytics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daft/analytics.py b/daft/analytics.py index 4944aa2bad..bf5b2c661d 100644 --- a/daft/analytics.py +++ b/daft/analytics.py @@ -18,7 +18,7 @@ from daft import context _ANALYTICS_CLIENT = None -_WRITE_KEY = "opL9scJXH6GKdIYgPdA0ncCj8i920LJq" +_WRITE_KEY = "ZU2LLq6HFW0kMEY6TiGZoGnRzogXBUwa" _SEGMENT_BATCH_ENDPOINT = "https://api.segment.io/v1/batch" @@ -34,8 +34,8 @@ class AnalyticsEvent: def _get_session_key(): - # Restrict the cardinality of keys to 8000 - return f"anon-{random.randint(1, 8000)}" + # Restrict the cardinality of keys to 800 + return f"anon-{random.randint(1, 800)}" def _build_segment_batch_payload(