Skip to content

feat(audit): validate frontend-backend session linking - #335

Draft
hpouillot wants to merge 1 commit into
mainfrom
posthog/audit-cross-runtime-session-id
Draft

feat(audit): validate frontend-backend session linking#335
hpouillot wants to merge 1 commit into
mainfrom
posthog/audit-cross-runtime-session-id

Conversation

@hpouillot

Copy link
Copy Markdown

Summary

  • audit browser tracing_headers and server request-context binding as two halves of one $session_id hand-off
  • include the check in both audit all and audit identify, including anonymous-only integrations
  • strengthen the integration step so full-stack installs wire supported middleware or request-scoped context instead of hand-written wrappers
  • treat tracing headers as analytics context, not authentication

Test plan

  • pnpm test (143 tests)
  • pnpm build
  • inspect generated audit, audit-identify, and integration-v2-identify skill archives
  • git diff --check

Companion change

The PostHog/wizard companion PR is PostHog/wizard#1085.

Teach the comprehensive and identify audits to verify both tracing_headers and server request-context binding. Strengthen integration guidance so full-stack setups wire the same person and session across runtimes.

Generated-By: PostHog Desktop
Task-Id: affb0421-c754-4167-8998-6a25bd80c58a
@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci ai-observability
  • /wizard-ci basic-integration
  • /wizard-ci mcp-analytics
  • /wizard-ci revenue
  • /wizard-ci self-driving

Test an individual app:

  • /wizard-ci ai-observability/anthropic
  • /wizard-ci ai-observability/groq
  • /wizard-ci ai-observability/manual-capture
Show more apps
  • /wizard-ci ai-observability/openai
  • /wizard-ci ai-observability/openai-agents
  • /wizard-ci ai-observability/vercel-ai
  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci revenue/stripe
  • /wizard-ci self-driving/astro
  • /wizard-ci self-driving/fastapi
  • /wizard-ci self-driving/nuxt
  • /wizard-ci self-driving/react-router
  • /wizard-ci self-driving/sveltekit

Results will be posted here when complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant