Repository navigation
posthog-v7.70.0
Immutable
release. Only release title and notes can be modified.
Minor changes
- 6916499
PostHogSpanProcessornow adds the active PostHog context to the AI spans it exports: the distinct ID fromidentify_context, the session ID fromset_context_session(sent as$session_id), and context tags as properties. Spans started insideposthog.new_context()reach PostHog under the right person, so one process can trace many users. Tags set by the request middleware (for exampleemail,$ip,$user_agentand$current_url) now appear on AI events too. Attributes already on a span are kept, and other processors on the provider never see the context. Apps already using PostHog contexts (for example the Django, Flask or ASGI request middleware) will see their AI events attributed to the context's person after upgrading. — Thanks @carlos-marchal-ph!