-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: document network requests for rn (#9927)
- Loading branch information
1 parent
c6778fe
commit 398f148
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
To capture network requests in your recordings, add `captureNetworkTelemetry: true` to your PostHog Session replay configuration alongside any of your other configuration options: | ||
|
||
> **Note:** Capture network requests is only available for iOS. | ||
```js | ||
export const posthog = new PostHog( | ||
'apiKey', | ||
{ | ||
// Enable session recording. Requires enabling in your project settings as well. | ||
// Default is false. | ||
enableSessionReplay: true, | ||
sessionReplayConfig: { | ||
// Whether network requests are captured in recordings. Default is true | ||
// Only metric-like data like speed, size, and response code are captured. | ||
// No data is captured from the request or response body. | ||
// iOS only | ||
captureNetworkTelemetry: true, | ||
... | ||
}, | ||
}, | ||
); | ||
``` | ||
|
||
> **Note:** Only metric-like data like speed, size, and response code are captured. No data is captured from the request or response body. |
This file contains 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