Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
aa2587c
feat(metrics): attach trace exemplars to flushed metric series (#1057)
DanielVisca Oct 13, 2026
e61c921
chore: Release v7.69.0 [skip ci]
releaser-posthog-python[bot] Oct 13, 2026
9e6955d
Update generated references
releaser-posthog-python[bot] Oct 13, 2026
be1aac5
feat(ai): add per-request context to span processor (#1060)
carlos-marchal-ph Oct 14, 2026
f91bada
chore: Release v7.70.0 [skip ci]
releaser-posthog-python[bot] Oct 14, 2026
976f41b
Update generated references
releaser-posthog-python[bot] Oct 14, 2026
e636251
fix(prompts): share one request between concurrent fetches of the sam…
jurajmajerik Oct 15, 2026
401cf67
chore: Release v7.70.1 [skip ci]
releaser-posthog-python[bot] Oct 15, 2026
e91b6d5
Update generated references
releaser-posthog-python[bot] Oct 15, 2026
05af454
fix(ai): mark cancelled async LLM calls as errors (#1065)
marandaneto Oct 15, 2026
486963c
chore: Release v7.70.2 [skip ci]
releaser-posthog-python[bot] Oct 15, 2026
e759542
Update generated references
releaser-posthog-python[bot] Oct 15, 2026
f466072
chore(deps): bump the ai-providers group with 8 updates (#1054)
dependabot[bot] Oct 16, 2026
355fe02
chore(deps): bump the github-actions group with 2 updates (#1055)
dependabot[bot] Oct 16, 2026
764a485
chore(deps): bump mcp from 1.28.1 to 1.30.0 (#1068)
dependabot[bot] Oct 16, 2026
2a11bd2
docs: clarify reusable flush and terminal shutdown guidance (#1043)
marandaneto Oct 16, 2026
c1022fb
chore: Release v7.71.0 [skip ci]
releaser-posthog-python[bot] Oct 16, 2026
26f7af9
Update generated references
releaser-posthog-python[bot] Oct 16, 2026
cb05402
chore(deps): bump the uv group across 4 directories with 2 updates (#…
dependabot[bot] Oct 16, 2026
5a89eb0
chore(deps-dev): bump claude-agent-sdk from 0.1.50 to 0.2.121 (#1073)
dependabot[bot] Oct 16, 2026
19a3660
feat(mcp): stop sending standalone $identify events (#1067)
gesh Oct 19, 2026
da64287
chore: Release v7.72.0 [skip ci]
releaser-posthog-python[bot] Oct 19, 2026
2eaa16c
Update generated references
releaser-posthog-python[bot] Oct 19, 2026
11d4ad3
chore(deps): bump the github-actions group with 6 updates (#1083)
dependabot[bot] Oct 19, 2026
810c6e3
chore(deps): bump the ai-providers group with 6 updates (#1082)
dependabot[bot] Oct 19, 2026
c878a81
feat(llma): support scorer and experiment tags (#1085)
Radu-Raicea Oct 19, 2026
43c2d8f
chore: Release v7.73.0 [skip ci]
releaser-posthog-python[bot] Oct 19, 2026
babded6
Update generated references
releaser-posthog-python[bot] Oct 19, 2026
994107b
fix(flags): accept rediss:// URLs for flag_fallback_cache_url (#1080)
sebxt Oct 19, 2026
2dcdd32
chore: Release v7.73.1 [skip ci]
releaser-posthog-python[bot] Oct 20, 2026
6efcc7f
Update generated references
releaser-posthog-python[bot] Oct 20, 2026
36339cf
chore(deps): bump aiohttp from 3.14.3 to 3.14.4 (#1086)
dependabot[bot] Oct 20, 2026
85fdb91
chore(deps): bump the uv group across 7 directories with 1 update (#1…
dependabot[bot] Oct 20, 2026
afcfcf2
fix(flags): compare numeric string properties numerically (#1088)
dustinbyrne Oct 20, 2026
30263c6
chore: Release v7.73.2 [skip ci]
releaser-posthog-python[bot] Oct 20, 2026
578256a
Update generated references
releaser-posthog-python[bot] Oct 20, 2026
170a49f
fix(ai): keep the openai.Stream API on sync OpenAI streams (#1062)
mosafariuk Oct 21, 2026
5abb26a
fix(ai): take cumulative Anthropic stream usage from message_delta (#…
pcbeingused333 Oct 21, 2026
9744353
chore: Release v7.73.3 [skip ci]
releaser-posthog-python[bot] Oct 21, 2026
21be61e
Update generated references
releaser-posthog-python[bot] Oct 21, 2026
bd5bbfc
feat(llma): add datasets to offline evaluations (#1090)
Radu-Raicea Oct 21, 2026
4381058
chore: Release v7.74.0 [skip ci]
releaser-posthog-python[bot] Oct 21, 2026
f4473b6
Update generated references
releaser-posthog-python[bot] Oct 21, 2026
300ea3f
feat(django): add request context to OpenTelemetry spans (#1070)
pauldambra Oct 21, 2026
e02c274
fix: enrich Flask, ASGI, and Celery spans with context (#1075)
pauldambra Oct 21, 2026
bdcdbcd
chore: Release v7.75.0 [skip ci]
releaser-posthog-python[bot] Oct 21, 2026
9cfc831
Update generated references
releaser-posthog-python[bot] Oct 21, 2026
81f7164
fix(flags): match explicit null properties with string operators (#1092)
marandaneto Oct 22, 2026
89c339d
chore: Release v7.75.1 [skip ci]
releaser-posthog-python[bot] Oct 22, 2026
f41e045
Update generated references
releaser-posthog-python[bot] Oct 22, 2026
bee52fb
fix(ai): capture OpenAI chat custom tool calls instead of raising (#1…
mosafariuk Oct 22, 2026
7e02dda
chore: Release v7.75.2 [skip ci]
releaser-posthog-python[bot] Oct 22, 2026
5ac32f4
Update generated references
releaser-posthog-python[bot] Oct 22, 2026
fa46ea1
fix(ai): record mid-stream errors on streamed OpenAI, Anthropic and G…
pcbeingused333 Oct 22, 2026
be6ee29
fix(ai): keep the refusal of a non-streamed OpenAI chat completion in…
pcbeingused333 Oct 22, 2026
6279811
fix(ai): record an integer $ai_http_status in the LangChain callback …
pcbeingused333 Oct 22, 2026
88f08d9
chore: Release v7.75.3 [skip ci]
releaser-posthog-python[bot] Oct 22, 2026
e799a0a
Update generated references
releaser-posthog-python[bot] Oct 22, 2026
972fc1d
fix(ai): keep latest cumulative output tokens across message_deltas (…
Harsh23Kashyap Oct 22, 2026
398581b
chore: Release v7.75.4 [skip ci]
releaser-posthog-python[bot] Oct 22, 2026
8e97363
Update generated references
releaser-posthog-python[bot] Oct 22, 2026
da41fbe
fix: serialize non-finite floats as null in JSON payloads (#1081)
Harsh23Kashyap Oct 22, 2026
25dd7d5
fix: annotate client timeouts as float (#1106)
turnipdabeets Oct 22, 2026
d5a4cc6
chore: Release v7.75.5 [skip ci]
releaser-posthog-python[bot] Oct 22, 2026
95ca84a
Update generated references
releaser-posthog-python[bot] Oct 22, 2026
845b961
fix(flags): retain tracking metadata in local evaluation snapshots (#…
dustinbyrne Oct 22, 2026
f96542b
chore: Release v7.75.6 [skip ci]
releaser-posthog-python[bot] Oct 22, 2026
91ebcc7
Update generated references
releaser-posthog-python[bot] Oct 22, 2026
c872436
chore(deps): bump uv to 0.13.4 and certifi to 2026.10.19 (#1104)
gantoine Oct 22, 2026
1b385d4
test: send NaN and Infinity as null on the v1 path, as #1081 does on …
eli-r-ph Oct 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup-python-dev/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
version: "0.11.32"
version: "0.13.4"
enable-cache: true

- name: Install dev dependencies
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ jobs:
python-version: 3.11.11

- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
version: "0.11.32"
version: "0.13.4"
enable-cache: true

- name: Build and verify distributions
Expand All @@ -137,9 +137,9 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
version: "0.11.32"
version: "0.13.4"
enable-cache: true

- name: Install test dependencies
Expand Down Expand Up @@ -176,9 +176,9 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
version: "0.11.32"
version: "0.13.4"
enable-cache: true

- name: Install test dependencies
Expand Down Expand Up @@ -242,9 +242,9 @@ jobs:

- name: Install uv
if: steps.changes.outputs.changed == 'true'
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
version: "0.11.32"
version: "0.13.4"
enable-cache: true

- name: Check utils CRAP score
Expand Down Expand Up @@ -323,9 +323,9 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
version: "0.11.32"
version: "0.13.4"
enable-cache: true

# openfeature-provider-posthog is a uv workspace member (declared in
Expand Down Expand Up @@ -378,9 +378,9 @@ jobs:
python-version: 3.12

- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
version: "0.11.32"
version: "0.13.4"
enable-cache: true

- name: Install Django 5 test project dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Initialize CodeQL
uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand All @@ -40,6 +40,6 @@ jobs:
trap-caching: false

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
with:
category: '/language:${{matrix.language}}'
4 changes: 2 additions & 2 deletions .github/workflows/posthog-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
token: ${{ steps.upgrader.outputs.token }}

- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
version: "0.12.21"
version: "0.13.4"

- name: Install new package version in main repo
shell: bash
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:

- name: Get GitHub App token
id: releaser
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.GH_APP_POSTHOG_PYTHON_RELEASER_APP_ID }}
private-key: ${{ secrets.GH_APP_POSTHOG_PYTHON_RELEASER_PRIVATE_KEY }}
Expand All @@ -101,13 +101,13 @@ jobs:
python-version: 3.11.11

- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
version: "0.11.32"
version: "0.13.4"
enable-cache: true

- name: Install Rust
uses: dtolnay/rust-toolchain@7e38f4b43b4db5c8dd498af069a4f6196df1d067
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
with:
toolchain: 1.91.1
components: cargo
Expand Down Expand Up @@ -306,9 +306,9 @@ jobs:
python-version: 3.11.11

- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
version: "0.11.32"
version: "0.13.4"
enable-cache: true

- name: Install dependencies
Expand Down Expand Up @@ -473,13 +473,13 @@ jobs:
python-version: 3.11.11

- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
version: "0.11.32"
version: "0.13.4"
enable-cache: true

- name: Install Rust
uses: dtolnay/rust-toolchain@7e38f4b43b4db5c8dd498af069a4f6196df1d067
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
with:
toolchain: 1.91.1
components: cargo
Expand Down
5 changes: 0 additions & 5 deletions .sampo/changesets/doughty-seer-vellamo.md

This file was deleted.

5 changes: 3 additions & 2 deletions docs/migration-7.x-to-8.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ Capture rejects a whole batch when one event cannot be parsed.
- An event whose name is missing, `None`, empty or not a string is dropped. The SDK logs one warning per reason per process. 7.x sent it.
- An event whose `before_send` hook sets `distinct_id` to `None` or a non-string is dropped, with one warning per reason per process. The SDK does not convert the hook's value or make up an ID. 7.x sent it, and capture would reject the whole batch.
- PostHog drops an event whose name is over 200 UTF-8 bytes (`event_name_too_long`), and `on_error` reports it. 7.x sent events to legacy capture, which had no event name limit.
- An event that cannot be serialized to JSON is dropped and logged, for example one with `NaN` or `Infinity` in its properties. 7.x sent `NaN` as invalid JSON.
- A property or option key that JSON cannot represent, such as a tuple, is dropped without a log, and the rest of the event is sent. 7.x dropped the event. `int`, finite `float`, `bool` and `None` keys are still converted to strings. A `NaN` or infinite `float` key drops the event, as a `NaN` value does.
- A `NaN` or infinite `float` value is sent as `null`, as in 7.75 and later, and the event is kept. Earlier 7.x versions sent invalid JSON, which made capture reject the whole batch.
- An event that cannot be serialized to JSON, for example one with a circular reference, is dropped and logged.
- A property or option key that JSON cannot represent, such as a tuple, is dropped without a log, and the rest of the event is sent. 7.x dropped the event. `int`, finite `float`, `bool` and `None` keys are still converted to strings. A `NaN` or infinite `float` key still drops the event.

## Event uuids

Expand Down
18 changes: 13 additions & 5 deletions examples/example-ai-anthropic/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions examples/example-ai-anthropic/uv.toml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
exclude-newer = "7 days"
# certifi 2026.10.19 drops the compromised eMudhra root and is newer than the 7-day cooldown.
exclude-newer-package = { certifi = "1 day" }
18 changes: 13 additions & 5 deletions examples/example-ai-autogen/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions examples/example-ai-autogen/uv.toml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
exclude-newer = "7 days"
# certifi 2026.10.19 drops the compromised eMudhra root and is newer than the 7-day cooldown.
exclude-newer-package = { certifi = "1 day" }
Loading
Loading