Repository navigation
docs: ask users to review before_send hooks for the v1 event shape - #1159
Merged
Merged
Conversation
dustinbyrne
approved these changes
Oct 30, 2026
dustinbyrne
left a comment
Contributor
There was a problem hiding this comment.
The migration warning matches v1’s hook and options handling. No issues found in this documentation-only change.
AI-assisted review.
This was referenced Nov 1, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eli-r-ph
force-pushed
the
eli/v1-guide-before-send-shape
branch
from
November 2, 2026 17:10
e5d3c99 to
68b8421
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 Motivation and Context
In v1,
before_sendsees the event'soptions, and nothing is added back after it runs. The personless marker moved from a property intooptions, so a hook written for the old shape that rebuilds the event from its properties now sends nooptions. That includes the SDK'sprocess_person_profile: falsefor an event with no distinct ID, so PostHog creates a person for the generated ID. The guide now asks users to review their hooks for the new event shape and to change options throughoptions, not legacy properties.💚 How did you test it?
Docs only.
📝 Checklist
If releasing new changes
sampo addto generate a changeset file🤖 Agent context
Autonomy: Human-driven (agent-assisted)
claude-opus-5-5). The drop was checked against the hook code onv1: the event the hook returns is the one sent, and no SDK value is re-added after it.🤖 Generated with Claude Code