Document strict minimum duration mode for session replay#13635
Merged
Document strict minimum duration mode for session replay#13635
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: pauldambra <984817+pauldambra@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update documentation for replay minimum duration mode
Document strict minimum duration mode for session replay
Nov 12, 2025
veryayskiy
approved these changes
Nov 12, 2025
Contributor
|
😆 nice, let me give copilot a bit of help, but generally looks fine |
gewenyu99
approved these changes
Nov 12, 2025
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.
Changes
Added documentation for
strictMinimumDurationconfig option introduced in posthog-js 1.291.0 (PostHog/posthog-js#2557). This mode changes how minimum duration is enforced for session recordings.Updated section: "Minimum duration" in
how-to-control-which-sessions-you-record.mdxKey documentation changes:
Legacy mode (default): Checks against session age. Starts sending after session is X seconds old, even if buffer cleared by page refresh. Can miss early session data.
Strict mode (1.291.0+): Checks against actual buffered data timestamps. Only sends after X seconds of continuous recording on a single page. More accurate for filtering short sessions.
Example with 12s minimum:
Configuration:
Added guidance on choosing between modes and noted strict mode will become default in future releases.
Checklist
vercel.jsonArticle checklist
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.