: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(deps): update posthoganalytics to 7.39.1 (#83209)
posthog-js-upgrader[bot]17daf04ab805
diff --git a/common/ingestion/acceptance_tests/api_client.py b/common/ingestion/acceptance_tests/api_client.pyindex 26d4cc9d339b..a16dd014a838 100644--- a/common/ingestion/acceptance_tests/api_client.py+++ b/common/ingestion/acceptance_tests/api_client.py@@ -193,12 +193,12 @@ class PostHogTestClient:client = Posthog(api_key,host=self.base_url,- _enable_multimodal_capture=True,+ enable_full_ai_capture=True,sync_mode=True,debug=True,)logger.info("Sending %s on the AI lane for distinct_id=%s", event, distinct_id)- client._capture_ai(event, distinct_id=distinct_id, properties=properties)+ client.capture_ai(event, distinct_id=distinct_id, properties=properties)client.flush()client.shutdown()diff --git a/common/ingestion/acceptance_tests/requirements.txt b/common/ingestion/acceptance_tests/requirements.txtindex a7838af824d3..190e3311178d 100644--- a/common/ingestion/acceptance_tests/requirements.txt+++ b/common/ingestion/acceptance_tests/requirements.txt@@ -5,5 +5,5 @@ requests-toolbelt==1.0.0boto3==1.29.7docker==6.1.3python-multipart==0.0.6-posthoganalytics==7.38.6+posthoganalytics==7.39.1openai==1.109.1diff --git a/products/exports/backend/temporal/subscriptions/test_llm_change_summary.py b/products/exports/backend/temporal/subscriptions/test_llm_change_summary.pyindex 0db06456a0fc..8469a1f20b4b 100644--- a/products/exports/backend/temporal/subscriptions/test_llm_change_summary.py+++ b/products/exports/backend/temporal/subscriptions/test_llm_change_summary.py@@ -718,7 +718,7 @@ class TestGenerateChangeSummary:generate_change_summary(None, current, team=team, delivery_id="abc-123") # type: ignore[arg-type]captured_calls = [- c.kwargs for method in (fake_client.capture, fake_client._capture_ai) for c in method.call_args_list+ c.kwargs for method in (fake_client.capture, fake_client.capture_ai) for c in method.call_args_list]ai_generation_calls = [c for c in captured_calls if c.get("event") == "$ai_generation"]assert len(ai_generation_calls) == 1, (diff --git a/pyproject.toml b/pyproject.tomlindex 4659c757c7a5..d81af58aca87 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.38.6",+ "posthoganalytics==7.39.1","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.tomlindex 1299160228e6..2c93a2f81ec8 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.38.6",+ "posthoganalytics>=7.39.1","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.lockindex ec8868e2212c..20fb76997be5 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.38.6" },+ { name = "posthoganalytics", specifier = ">=7.39.1" },{ 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.0"+version = "7.39.1"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/98/d0/ddae5423e24bcf8c78b8fc547984bb055756a4874a4ca11fe7f7422e404c/posthoganalytics-7.39.0.tar.gz", hash = "sha256:233941f03543359953b9cbef8327cafc46b0248f2212c4fb806806a04110102b", size = 426301, upload-time = "2026-08-13T11:57:39.538Z" }+sdist = { url = "https://files.pythonhosted.org/packages/df/61/b78317abb7f99b0b31513f171907434cc9c6fb18a80ffac17e44c0651731/posthoganalytics-7.39.1.tar.gz", hash = "sha256:a81d402b1d139774346ed224016d1f5310ebe89f955b08377fb546691e3a4a91", size = 428630, upload-time = "2026-08-14T13:51:17.661Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/63/4e/d4e448ba55202ca56f3a1af5396a93b0eb6477f872082dc116886a64b526/posthoganalytics-7.39.0-py3-none-any.whl", hash = "sha256:08f86716f78d991eecaf9938fb45080763a3963e1bc67e85aef1e2f025669674", size = 505017, upload-time = "2026-08-13T11:57:37.419Z" },+ { url = "https://files.pythonhosted.org/packages/f9/11/3302e6195b9f9dba0b912ce6008cbc6ec89e1d15ad94a4532794bc694fab/posthoganalytics-7.39.1-py3-none-any.whl", hash = "sha256:9349851f4c996e6fd2c8defade3aa7d3d8b9677640ccfa316df4c8d074d4c4e9", size = 507626, upload-time = "2026-08-14T13:51:15.76Z" },][[package]]diff --git a/tools/infra-scripts/clitools/requirements.txt b/tools/infra-scripts/clitools/requirements.txtindex 71d96af17d89..13452e23ce71 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.38.6+posthog>=7.39.1diff --git a/uv.lock b/uv.lockindex d127c896de16..e3f8e7d6f514 100644--- a/uv.lock+++ b/uv.lock@@ -5951,7 +5951,7 @@ requires-dist = [{ name = "pixelhog", specifier = "~=1.2.0" },{ name = "playwright", specifier = "~=1.60.0" },{ name = "polars", specifier = "==1.37.1" },- { name = "posthoganalytics", specifier = "==7.38.6" },+ { name = "posthoganalytics", specifier = "==7.39.1" },{ name = "protobuf", specifier = "~=5.29.6" },{ name = "psycopg", extras = ["binary"], specifier = "==3.2.4" },{ name = "psycopg2-binary", specifier = "==2.9.10" },@@ -6112,7 +6112,7 @@ provides-extras = ["dev"][[package]]name = "posthoganalytics"-version = "7.38.6"+version = "7.39.1"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "backoff" },@@ -6120,9 +6120,9 @@ dependencies = [{ name = "requests" },{ name = "typing-extensions" },]-sdist = { url = "https://files.pythonhosted.org/packages/47/ba/332bc458952bb0b86689335cda3421a5b540c0667c8efc1cded10c30fddb/posthoganalytics-7.38.6.tar.gz", hash = "sha256:4ca671b55c10aa27cea5278f87119a4fecedb74f53591482a217d9e01ec08135", size = 424889, upload-time = "2026-08-12T17:46:37.312Z" }+sdist = { url = "https://files.pythonhosted.org/packages/df/61/b78317abb7f99b0b31513f171907434cc9c6fb18a80ffac17e44c0651731/posthoganalytics-7.39.1.tar.gz", hash = "sha256:a81d402b1d139774346ed224016d1f5310ebe89f955b08377fb546691e3a4a91", size = 428630, upload-time = "2026-08-14T13:51:17.661Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/a0/b7/7341e9f1b000956326bbf6eb4f9e402c4ba0b1aa417b7ae2444207f13487/posthoganalytics-7.38.6-py3-none-any.whl", hash = "sha256:2c582fd7ba99af17abb63eeee0d8614d3bfed8ffa16882be3594a2b15c722bd0", size = 503692, upload-time = "2026-08-12T17:46:35.72Z" },+ { url = "https://files.pythonhosted.org/packages/f9/11/3302e6195b9f9dba0b912ce6008cbc6ec89e1d15ad94a4532794bc694fab/posthoganalytics-7.39.1-py3-none-any.whl", hash = "sha256:9349851f4c996e6fd2c8defade3aa7d3d8b9677640ccfa316df4c8d074d4c4e9", size = 507626, upload-time = "2026-08-14T13:51:15.76Z" },][[package]]