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
Capture network requests and responses in session replay #16410
Comments
This sounds like a great feature! In our use case, we could use the collected network request to inspect if our frontend is structuring requests as expected for the backend, and see if our backend responses are as expected. |
We're now looking to recruit one or two users to test this feature with us. We've been running it in production on posthog.com safely |
Don't know if this is planned, but Sentry has a fantastic way to censor content through a callback before it is sent (https://docs.sentry.io/platforms/javascript/configuration/filtering/) This lets me easily inspect the objects being sent to sentry and catch/censor any private data. |
Hey @MaelAbgrall, We already have that mechanism for replay data in general and have added that for request headers/payload too 👍 Would you like to test it with us? |
cool! |
Turned the flag on for you, so you should see them as options in replay config. You can drop feedback direct to the team using https://app.posthog.com/home#panel=support%3Afeedback%3Asession_replay |
Great thanks, have you got documentation for the callback? Typescript tells me |
This would be super useful feature - would love to test it! |
Waiting for this useful feature, would love to test it! |
@mohit-gyaan I've been able to (I think) find your account from your github profile and enabled the flag for you. so you should see them as options in replay config. You can drop feedback direct to the team using https://us.posthog.com/home#panel=support%3Afeedback%3Asession_replay @jape-dev it wasn't clear what account you're using. Can you share here? Or email paul AT posthog DOT com |
@pauldambra james AT useairpipe DOT com |
Awesome, flag is on for you too @jape-dev. Thanks! |
this has now been added to our feature preview so anyone can opt in to testing it |
@pauldambra do i have to upgrade the js sdk to latest version for this to work properly ? |
It's on version > 1.88.x What version are you running? |
We are using 1.93.3, but not able to see payload in network requests. |
@mohit-gyaan I've checked the account I thought was yours - do you have recordings disabled? Can you log in to the project you're testing this with and let me know using https://us.posthog.com/home#panel=support%3Asupport%3Asession_replay which links the project to the support ticket so I can take a look. |
this is now generally available |
The Monitoring team is currently considering improving PostHog by adding the ability to capture network requests and responses to session recordings / replay.
We already capture network calls that are made and their performance data using the browsers' built-in
PerformanceObserver
. Adding capture of requests, responses, and status codes would allow our users to more thoroughly understand the behavior of their applications.Alongside this we would add the ability to sanitize/censor that data so that we reduce the inherent risk of capturing sensitive data.
🗂 Considered Goals
These goals are being considered by the Monitoring Team and we'd love to hear user feedback, as well as ideas for stretch goals or implementation. Please add to this issue!
If you like this idea, please leave a 👍 or ❤️ reaction on this post to vote for it -- your votes and feedback help us prioritize what to work on next!
The text was updated successfully, but these errors were encountered: