0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/frontend
Paul D'Ambra 2af4622c09
Injects a logger during posthog init which sends an exception to Sentry when there is an XHR error (#6182)
* adds Sentry to the window object to facilitate logging for PostHog/posthog-js#290

* inject xhr error behaviour rather than injecting Sentry - depends on PostHog/posthog-js#296

* Add expected type to onXHRError function

* more safely add Sentry to posthog config

* update setting on xhr error config to correct exported config type

* enrich sentry error after testing
2021-10-04 14:52:41 -07:00
..
public
src Injects a logger during posthog init which sends an exception to Sentry when there is an XHR error (#6182) 2021-10-04 14:52:41 -07:00