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

fix(errors): Build endpoint for sentry integration & exception observer correctly #1390

Merged
merged 4 commits into from
Aug 28, 2024

Conversation

neilkakkar
Copy link
Contributor

@neilkakkar neilkakkar commented Aug 28, 2024

Changes

Fixes #1389

I'm not sure how best to add tests for the sentry integration, any prior stuff here?
...

Checklist

  • Tests for new code (see advice on the tests we use)
  • Accounted for the impact of any changes across different browsers
  • Accounted for backwards compatibility of any changes (no breaking changes in posthog-js!)

Copy link

vercel bot commented Aug 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Aug 28, 2024 8:39am


it('sends event to the correct endpoint', () => {
const error = new Error('test error')
window!.onerror?.call(window, 'message', 'source', 0, 0, error)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not working locally, all these tests, checking if they do on CI 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node version 18.XX was the culprit, had to upgrade to 18.20

Copy link

github-actions bot commented Aug 28, 2024

Size Change: +424 B (+0.04%)

Total Size: 1.17 MB

Filename Size Change
dist/array.full.js 334 kB +106 B (+0.03%)
dist/array.js 155 kB +106 B (+0.07%)
dist/main.js 156 kB +106 B (+0.07%)
dist/module.js 155 kB +106 B (+0.07%)
ℹ️ View Unchanged
Filename Size
dist/exception-autocapture.js 10.4 kB
dist/recorder-v2.js 110 kB
dist/recorder.js 110 kB
dist/surveys-preview.js 59.8 kB
dist/surveys.js 66 kB
dist/tracing-headers.js 8.26 kB
dist/web-vitals.js 5.79 kB

compressed-size-action

@neilkakkar neilkakkar requested a review from a team August 28, 2024 08:37
@neilkakkar neilkakkar marked this pull request as ready for review August 28, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sentryIntegration sends errors to an incorrect endpoint with a relative api host
2 participants