Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
698b3a4
chore: add major changeset for posthog 8.0 capture v1 release
eli-r-ph Oct 6, 2026
5b43ec7
feat!: send capture through v1 by default; capture_ai to /i/v1/ai/eve…
eli-r-ph Oct 10, 2026
8da46d8
feat!: remove capture v0 and legacy transport options (#1018)
eli-r-ph Oct 10, 2026
29225eb
refactor!: split capture_v1 into capture_event and capture_send (#1019)
eli-r-ph Oct 10, 2026
20fdb14
feat!: report capture v1 results through CaptureError and on_error (#…
eli-r-ph Oct 10, 2026
a15eff4
feat: AI lane config and size-aware batching (#1022)
eli-r-ph Oct 10, 2026
252886c
test(mcp): fix get_tool checks for fastmcp 4.0.11 (#1050)
eli-r-ph Oct 14, 2026
305e74e
feat!: add per-event capture options (#1023)
eli-r-ph Oct 14, 2026
4cc19c1
feat!: add global and context option layers (#1024)
eli-r-ph Oct 14, 2026
f4b67b5
feat!: AI and MCP send personless as an event option (#1025)
eli-r-ph Oct 14, 2026
49399ed
chore(ci): run compliance harness 1.13.1 once per codec (#1026)
eli-r-ph Oct 14, 2026
dd9c122
feat!: AI wrappers always send through capture_ai (#1027)
eli-r-ph Oct 14, 2026
ed296dc
feat: add an AI capture lane to AsyncPosthog (#1028)
eli-r-ph Oct 14, 2026
5ec93d0
test: cover capture invariants on both lanes (#1029)
eli-r-ph Oct 14, 2026
63d3204
docs: 8.0 migration guide and openfeature-provider pin (#1030)
eli-r-ph Oct 20, 2026
331ae32
feat!: MCP no longer relabels the client SDK identity (#1034)
eli-r-ph Oct 20, 2026
2343064
fix!: follow capture redirects only to the same origin (#1035)
eli-r-ph Oct 20, 2026
0e7afbb
chore: sync main into v1 (7.65.0–7.67.0) (#1044)
eli-r-ph Oct 20, 2026
4d32397
feat!: exception level, keyword-only args, uuid and geoip (#1046)
eli-r-ph Oct 20, 2026
bddc729
fix(ai)!: AI integrations require a client with capture_ai (#1048)
eli-r-ph Oct 20, 2026
d5b29f1
chore: sync main into v1 (7.67.1–7.68.0) (#1051)
eli-r-ph Oct 20, 2026
fc04fbc
fix!: drop only the invalid event, not its whole batch (#1052)
eli-r-ph Oct 22, 2026
980f703
fix!: group_identify and alias never guess a distinct id (#1053)
eli-r-ph Oct 22, 2026
6fb23f9
fix: spread capture retry waits by up to 25% (#1058)
eli-r-ph Oct 22, 2026
f18160c
fix: read tracing headers by default in v1 integrations (port of #106…
eli-r-ph Oct 22, 2026
9972f15
fix: report capture's dropped duplicate copies as drops (#1113)
eli-r-ph Oct 23, 2026
a06ac45
docs: mark the migration guide to link the public capture v1 guide (#…
eli-r-ph Oct 23, 2026
c587bdb
chore: sync main into v1 (7.69.0–7.75.6) (#1120)
eli-r-ph Oct 23, 2026
537190e
fix: fill feature flag properties below context tags and super proper…
eli-r-ph Oct 23, 2026
cfdb4ec
fix: own capture connection retries and redact hook error logs (#1125)
eli-r-ph Oct 27, 2026
06fbd90
fix: fill OpenTelemetry trace IDs below context tags and super proper…
eli-r-ph Oct 27, 2026
327f50b
fix: add OpenTelemetry span IDs to async capture_exception (#1123)
eli-r-ph Oct 27, 2026
150a6fe
fix: retry capture requests that get 404 or 429 (#1132)
eli-r-ph Oct 27, 2026
2a2f26d
test: an event JSON cannot serialize is dropped alone (#1138)
eli-r-ph Oct 28, 2026
fd1f241
chore: run the capture v1 compliance suites from harness 1.25.0 (#1137)
eli-r-ph Oct 28, 2026
875a1f6
chore: run the capture v1 compliance suites from harness 1.26.0 (#1142)
eli-r-ph Oct 29, 2026
3f429dd
chore: sync main into v1 (7.75.7–7.81.1) (#1169)
eli-r-ph Nov 2, 2026
4d54d2b
fix(ai): treat an empty or whitespace distinct id as missing in AI in…
eli-r-ph Nov 2, 2026
3f37e3d
docs: ask users to review before_send hooks for the v1 event shape (#…
eli-r-ph Nov 2, 2026
4f2b004
fix: whole-second timestamps and 8.0 migration guide gaps (#1168)
eli-r-ph Nov 3, 2026
db98af0
chore: sync main into v1 (7.81.2–7.82.2) (#1174)
eli-r-ph Nov 4, 2026
0b637fc
chore: sync main into v1 (7.83.0–7.83.1, flags v4) (#1175)
eli-r-ph Nov 4, 2026
504e50d
feat!: send $lib and $lib_version per event; MCP event options, Celer…
eli-r-ph Nov 9, 2026
4f60c33
docs: show how to keep identity calls under a global personless setti…
eli-r-ph Nov 11, 2026
994adb7
chore: merge main into v1 up to 7.86.x (emails, MCP alignment, flags,…
eli-r-ph Nov 11, 2026
c9185bd
chore: merge main into v1 (7.87.0-7.87.1: $experiment_exposure, IPv6 …
eli-r-ph Nov 11, 2026
268c613
docs: regenerate the 8.x and migration references from this branch
eli-r-ph Nov 11, 2026
80563b2
test(benchmarks): run the paired benchmarks against capture v1
eli-r-ph Nov 11, 2026
c5e8ca1
docs: drop the GitHub link from the 8.0 guide's Celery eager note (#1…
eli-r-ph Nov 12, 2026
0ded23d
docs: pin the reference install line to the page's major (#1234)
eli-r-ph Nov 12, 2026
3e804b9
feat!: default identify-style events to person processing on (#1247)
eli-r-ph Nov 16, 2026
dd8ad56
chore: merge main (v7.87.2-v7.91.2) into v1
eli-r-ph Nov 16, 2026
c8ab322
docs: regenerate the 8.x reference with main's new API
eli-r-ph Nov 16, 2026
018d15d
chore: merge main (#1257) into v1
eli-r-ph Nov 16, 2026
d08130d
docs: point the new_context contexts link at the SDK reference
gewenyu99 Nov 16, 2026
f5cf8ef
Merge main into vincent/python-contexts-link
gewenyu99 Nov 17, 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 posthog/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ def _set_before_send(self, before_send):

def new_context(self, fresh=False, capture_exceptions: Optional[bool] = None):
"""
Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python#contexts).
Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python/reference#posthognew_context).

Args:
fresh: Whether to create a fresh context that doesn't inherit from parent.
Expand Down
2 changes: 1 addition & 1 deletion references/posthog-python-7.md
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ Flat list of the lanes' consumers, analytics first (kept for backwards compatibi
new_context(fresh=False, capture_exceptions: Optional[bool] = None)
```

Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python#contexts).
Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python/reference#posthognew_context).

**Parameters:**

Expand Down
2 changes: 1 addition & 1 deletion references/posthog-python-8.md
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ Flat list of the lanes' consumers, analytics first (kept for backwards compatibi
new_context(fresh=False, capture_exceptions: Optional[bool] = None)
```

Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python#contexts).
Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python/reference#posthognew_context).

**Parameters:**

Expand Down
2 changes: 1 addition & 1 deletion references/posthog-python-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ Flat list of the lanes' consumers, analytics first (kept for backwards compatibi
new_context(fresh=False, capture_exceptions: Optional[bool] = None)
```

Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python#contexts).
Create a new context for managing shared state. Learn more about [contexts](/docs/libraries/python/reference#posthognew_context).

**Parameters:**

Expand Down
Loading