Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network bodies for network logs #159

Open
4 tasks
marandaneto opened this issue Aug 13, 2024 · 1 comment
Open
4 tasks

Network bodies for network logs #159

marandaneto opened this issue Aug 13, 2024 · 1 comment
Labels
enhancement New feature or request Session Replay

Comments

@marandaneto
Copy link
Member

marandaneto commented Aug 13, 2024

Description

This should go somewhere here

var snapshotsData: [Any] = []
let requestsData = [sample.toDict()]
let payloadData: [String: Any] = ["requests": requestsData]
let pluginData: [String: Any] = ["plugin": "rrweb/network@1", "payload": payloadData]
let data: [String: Any] = ["type": 6, "data": pluginData, "timestamp": sample.timeOrigin.toMillis()]
snapshotsData.append(data)
PostHogSDK.shared.capture("$snapshot", properties: ["$snapshot_source": "mobile", "$snapshot_data": snapshotsData])

Some builtin PII scrubbing is necessary, take a look at the JS SDK.

  • Android
  • iOS
  • RN
  • Flutter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Session Replay
Projects
None yet
Development

No branches or pull requests

1 participant