Skip to content

Docs: Add session replay sampling support for Android and iOS SDKs#15367

Closed
inkeep[bot] wants to merge 3 commits intomasterfrom
docs-writer-ai-update-2026-02-27T09-46-12-083Z-zuygya
Closed

Docs: Add session replay sampling support for Android and iOS SDKs#15367
inkeep[bot] wants to merge 3 commits intomasterfrom
docs-writer-ai-update-2026-02-27T09-46-12-083Z-zuygya

Conversation

@inkeep
Copy link
Contributor

@inkeep inkeep bot commented Feb 27, 2026

Summary

Documents the new session recording sampling rate feature for Android and iOS mobile SDKs, added in PostHog/posthog#49047.

Changes

1. contents/docs/session-replay/_snippets/android-installation.mdx

  • Added sessionReplayConfig.sampleRate configuration option to the Android code example
  • Documents the 0.0-1.0 value range with default null (all sessions recorded)
  • Notes SDK version 3.34.0+ requirement for remote configuration support

2. contents/docs/session-replay/_snippets/ios-installation.mdx

  • Added config.sessionReplayConfig.sampleRate configuration option to the iOS code example
  • Documents the 0.0-1.0 value range with default nil (all sessions recorded)
  • Notes SDK version 3.42.0+ requirement for remote configuration support

3. contents/docs/session-replay/how-to-control-which-sessions-you-record.mdx

  • Added new "Mobile SDK sampling" subsection under the Sampling section
  • Includes tab-based code examples for both Android and iOS
  • Documents version requirements and remote configuration support via session replay triggers

Related


This PR was created by the Inkeep Content Writer agent, which is maintained by the Docs and Wizard team. Please reach out on Slack for help if needed.

inkeep bot added 3 commits February 27, 2026 09:47
Adds the sampleRate configuration option to the Android session replay
installation snippet, reflecting the new sampling support added in
Android SDK v3.34.0 (PR PostHog/posthog#49047).
…cording sampling

Reflects changes from PostHog/posthog#49047 which adds sampling support
for iOS SDK v3.42.0+. The sampleRate option accepts a value between 0.0
and 1.0, with nil meaning all sessions are recorded.
Documents the new `sampleRate` config option for Android SDK (v3.34.0+) and iOS SDK (v3.42.0+) in the session recording controls page, matching PR #49047 in PostHog/posthog.
@inkeep inkeep bot requested a review from marandaneto February 27, 2026 09:50
@github-actions
Copy link
Contributor

github-actions bot commented Feb 27, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Feb 27, 2026 10:01AM

@github-actions
Copy link
Contributor

Vale prose linter → found 6 errors, 19 warnings, 1 suggestions in your markdown

Full report → Copy the linter results into an LLM to batch-fix issues.

Linter being weird? Update the rules!

contents/docs/session-replay/_snippets/android-installation.mdx — 0 errors, 5 warnings, 0 suggestions
Line Severity Message Rule
11:3 warning Capitalize 'Session Replay' for PostHog's product. Use 'Session replay' for the general industry concept. PostHogBase.ProductNames
60:15 warning Capitalize 'Session Replay' for PostHog's product. Use 'session replay' for the general industry concept. PostHogBase.ProductNames
69:3 warning 'Jetpack' is a possible misspelling. PostHogBase.Spelling
77:44 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
79:7 warning Capitalize 'Session Replay' for PostHog's product. Use 'Session replay' for the general industry concept. PostHogBase.ProductNames
contents/docs/session-replay/_snippets/ios-installation.mdx — 0 errors, 4 warnings, 0 suggestions
Line Severity Message Rule
11:5 warning Capitalize 'Session Replay' for PostHog's product. Use 'Session replay' for the general industry concept. PostHogBase.ProductNames
77:56 warning Capitalize 'Session Replay' for PostHog's product. Use 'session replay' for the general industry concept. PostHogBase.ProductNames
103:44 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
105:7 warning Capitalize 'Session Replay' for PostHog's product. Use 'Session replay' for the general industry concept. PostHogBase.ProductNames
contents/docs/session-replay/how-to-control-which-sessions-you-record.mdx — 6 errors, 10 warnings, 1 suggestions
Line Severity Message Rule
17:88 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
26:142 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
26:246 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
26:308 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
57:4 warning 'With Event trigger conditions' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
59:7 warning Use 'PostHog' instead of 'posthog'. Vale.Terms
71:13 warning Capitalize 'Error Tracking' for PostHog's product. Use 'error tracking' for the general industry concept. PostHogBase.ProductNames
92:74 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
94:23 warning 'navigations' is a possible misspelling. PostHogBase.Spelling
96:9 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
122:142 error Use straight quotes and apostrophes, not curly ones. PostHogDocs.CurlyQuotes
122:177 error Use straight quotes and apostrophes, not curly ones. PostHogDocs.CurlyQuotes
135:125 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
157:86 warning Capitalize 'Session Replay' for PostHog's product. Use 'session replay' for the general industry concept. PostHogBase.ProductNames
169:82 warning Capitalize 'Session Replay' for PostHog's product. Use 'session replay' for the general industry concept. PostHogBase.ProductNames
237:24 suggestion Address the reader directly. Use 'you' instead of 'the user'. PostHogDocs.DirectAddress
245:87 warning 'navigations' is a possible misspelling. PostHogBase.Spelling

@marandaneto
Copy link
Member

done by #15365

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