Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(deps): update posthoganalytics to 7.42.0 (#87097)

posthog-js-upgrader[bot]829d32227b87
diff --git a/common/ingestion/acceptance_tests/requirements.txt b/common/ingestion/acceptance_tests/requirements.txt
index 9005e0147942..c1694ac03068 100644
--- a/common/ingestion/acceptance_tests/requirements.txt
+++ b/common/ingestion/acceptance_tests/requirements.txt
@@ -5,5 +5,5 @@ requests-toolbelt==1.0.0
boto3==1.29.7
docker==6.1.3
python-multipart==0.0.6
-posthoganalytics==7.39.2
+posthoganalytics==7.42.0
openai==1.109.1
diff --git a/pyproject.toml b/pyproject.toml
index a1af16b446af..3f0b1a51f6b0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -100,7 +100,7 @@ dependencies = [
"paramiko~=3.5.0",
"pillow==12.2.0",
"protobuf~=5.29.6",
- "posthoganalytics==7.39.2",
+ "posthoganalytics==7.42.0",
"polars==1.37.1",
"psycopg2-binary==2.9.10",
"psycopg[binary]==3.2.4",
diff --git a/services/llm-gateway/pyproject.toml b/services/llm-gateway/pyproject.toml
index 779ac573856f..02f0920a68d6 100644
--- a/services/llm-gateway/pyproject.toml
+++ b/services/llm-gateway/pyproject.toml
@@ -21,7 +21,7 @@ dependencies = [
"prometheus-fastapi-instrumentator>=7.0.0",
"structlog>=24.4.0",
"httpx>=0.28.0",
- "posthoganalytics>=7.39.2",
+ "posthoganalytics>=7.42.0",
"cachetools>=5.5.0",
"python-multipart>=0.0.9",
"boto3>=1.42.65",
diff --git a/services/llm-gateway/uv.lock b/services/llm-gateway/uv.lock
index 3d1edace834e..dcb221ca933b 100644
--- a/services/llm-gateway/uv.lock
+++ b/services/llm-gateway/uv.lock
@@ -911,7 +911,7 @@ requires-dist = [
{ name = "httpx", specifier = ">=0.28.0" },
{ name = "litellm", specifier = "==1.92.0" },
{ name = "orjson", specifier = ">=3.10.0" },
- { name = "posthoganalytics", specifier = ">=7.39.2" },
+ { name = "posthoganalytics", specifier = ">=7.42.0" },
{ name = "prometheus-client", specifier = ">=0.21.0" },
{ name = "prometheus-fastapi-instrumentator", specifier = ">=7.0.0" },
{ name = "pydantic", specifier = ">=2.5.0" },
@@ -1193,7 +1193,7 @@ wheels = [
[[package]]
name = "posthoganalytics"
-version = "7.39.2"
+version = "7.42.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "backoff" },
@@ -1201,9 +1201,9 @@ dependencies = [
{ name = "requests" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/84/83/d56d3750e88d8c74feed0c6accbf0297e5e5e8f38158c48322e16cdbfc40/posthoganalytics-7.39.2.tar.gz", hash = "sha256:a22ab08897451648e113faff1e1417152fc8e58996882b1264357757bea3cd25", size = 430701, upload-time = "2026-08-20T12:50:17.885Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/51/ba/296401c71b0ae4c883529e89b4e4283b87bfd5232279660e814be045ec1d/posthoganalytics-7.42.0.tar.gz", hash = "sha256:da2c73fb9bfc7af5acde50422d06069e5dc10eb4c2602e356f101a427342c7f0", size = 469724, upload-time = "2026-08-21T12:58:05.436Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/6a/8f/199a053f4a47c8c9e5cc32e8f1ceee8961f080c6870b5c5486646eb1bb7f/posthoganalytics-7.39.2-py3-none-any.whl", hash = "sha256:4a7556cdf51f6514eeb9594c52bfdc46a361b614281851e1b47451a924854bbb", size = 510372, upload-time = "2026-08-20T12:50:16.264Z" },
+ { url = "https://files.pythonhosted.org/packages/fd/4d/9a3fd029a4020f37ea640a8b70e48a8c01ba62083120087e5fade837034a/posthoganalytics-7.42.0-py3-none-any.whl", hash = "sha256:4cdd7e026db8bae0899f97e1706b7a2735c94065c0388fcf8553e991bd76d973", size = 562856, upload-time = "2026-08-21T12:58:03.456Z" },
]
[[package]]
diff --git a/tools/infra-scripts/clitools/requirements.txt b/tools/infra-scripts/clitools/requirements.txt
index 63c80434b21b..f2f252e84b27 100644
--- a/tools/infra-scripts/clitools/requirements.txt
+++ b/tools/infra-scripts/clitools/requirements.txt
@@ -1,4 +1,4 @@
# PostHog Python SDK — used by toolbox/telemetry.py to capture usage events.
# https://posthog.com/docs/libraries/python
# >=3 required: the `Posthog` client class doesn't exist in older 1.x/2.x releases.
-posthog>=7.39.2
+posthog>=7.42.0
diff --git a/uv.lock b/uv.lock
index 371ae0062c5f..200867be2bb6 100644
--- a/uv.lock
+++ b/uv.lock
@@ -5971,7 +5971,7 @@ requires-dist = [
{ name = "playwright", specifier = "~=1.60.0" },
{ name = "polars", specifier = "==1.37.1" },
{ name = "posthog-owners", editable = "tools/owners" },
- { name = "posthoganalytics", specifier = "==7.39.2" },
+ { name = "posthoganalytics", specifier = "==7.42.0" },
{ name = "protobuf", specifier = "~=5.29.6" },
{ name = "psycopg", extras = ["binary"], specifier = "==3.2.4" },
{ name = "psycopg2-binary", specifier = "==2.9.10" },
@@ -6131,7 +6131,7 @@ provides-extras = ["dev"]
[[package]]
name = "posthoganalytics"
-version = "7.39.2"
+version = "7.42.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "backoff" },
@@ -6139,9 +6139,9 @@ dependencies = [
{ name = "requests" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/84/83/d56d3750e88d8c74feed0c6accbf0297e5e5e8f38158c48322e16cdbfc40/posthoganalytics-7.39.2.tar.gz", hash = "sha256:a22ab08897451648e113faff1e1417152fc8e58996882b1264357757bea3cd25", size = 430701, upload-time = "2026-08-20T12:50:17.885Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/51/ba/296401c71b0ae4c883529e89b4e4283b87bfd5232279660e814be045ec1d/posthoganalytics-7.42.0.tar.gz", hash = "sha256:da2c73fb9bfc7af5acde50422d06069e5dc10eb4c2602e356f101a427342c7f0", size = 469724, upload-time = "2026-08-21T12:58:05.436Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/6a/8f/199a053f4a47c8c9e5cc32e8f1ceee8961f080c6870b5c5486646eb1bb7f/posthoganalytics-7.39.2-py3-none-any.whl", hash = "sha256:4a7556cdf51f6514eeb9594c52bfdc46a361b614281851e1b47451a924854bbb", size = 510372, upload-time = "2026-08-20T12:50:16.264Z" },
+ { url = "https://files.pythonhosted.org/packages/fd/4d/9a3fd029a4020f37ea640a8b70e48a8c01ba62083120087e5fade837034a/posthoganalytics-7.42.0-py3-none-any.whl", hash = "sha256:4cdd7e026db8bae0899f97e1706b7a2735c94065c0388fcf8553e991bd76d973", size = 562856, upload-time = "2026-08-21T12:58:03.456Z" },
]
[[package]]