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

Capture front end errors #1673

Closed
jamesefhawkins opened this issue Sep 17, 2020 · 5 comments
Closed

Capture front end errors #1673

jamesefhawkins opened this issue Sep 17, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@jamesefhawkins
Copy link
Collaborator

Is your feature request related to a problem?

I just had a user call with a potentially interesting dev-focussed use case. I want to understand what happened when a front end error was triggered by a user doing something.

Describe the solution you'd like

We specifically want to see what a user was doing when an error occurred so the customer support team can talk with engineering and get back to the user with a solution without having to ask for console logs etc.

This means:

Even better:

  • Ability to see the PRs versus errors over time on a dashboard
  • Ability to create a GitHub issue with the error data in

Describe alternatives you've considered

?

@jamesefhawkins jamesefhawkins added the enhancement New feature or request label Sep 17, 2020
@macobo
Copy link
Contributor

macobo commented Oct 6, 2020

This is interesting. My 2c

Ability to see the PRs versus errors over time on a dashboard

This sort of gets into the domain of sentry/bugsnag/other error tracking tools or e.g. datadog.

One cool thing we could do here to integrate with these is to link into posthog from these tools to get at the user/session recording:

A recipe for doing this:

  1. Implement Consider integrating rrweb, for recording and replaying interactions? #149
  2. Hook into sentry/bugsnag on errors (can be done by e.g. hooking into beforeSend for bugsnag: https://docs.bugsnag.com/platforms/javascript/configuration-options/)
    1. Provide e.g. analytics_id or analytics_user_link or analytics_session_link to bugsnag
    2. Send an event to posthog that an error occurred

This way other tools can deal with error tracking/management but link into posthog for it's strength: tracking and user/cohort analysis.

@Twixes
Copy link
Member

Twixes commented Dec 8, 2020

We now have a Sentry integration for JS. Sentry does a much better job at error capture than we'll ever will (it's their whole job) and we get the relevant information into PostHog as well, so this seems like the optimal solution.

@Twixes Twixes closed this as completed Dec 8, 2020
@jamesefhawkins
Copy link
Collaborator Author

For anyone reading... We have now built:

  • session recording
  • we are actively looking for a beta user for our error recording - we can track console logs whilst a session is being used. Please message hey @ posthog dot com if this could be you!

Screenshot 2022-03-17 at 14 12 00

(this doesnt' work with segment unless you also add our js snippet to your header)

@PatrickBilic
Copy link

Hey @posthog.com :)

@jonsherrard
Copy link

Hey @posthog.com

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

No branches or pull requests

5 participants