Skip to content

Update express app from v7 to v8.0.0-beta.3 #14

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

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Update express app from v7 to v8.0.0-beta.3 #14

merged 2 commits into from
Apr 23, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 18, 2024

This bumps the express app to 8.0.0-beta.3.

The main changes necessary:

  1. Bump SDK version
  2. Ensure Sentry.init() is called before anything else is imported/required
  3. Remove handlers
  4. Add Sentry.setupExpressErrorHandler(app)

@mydea mydea self-assigned this Apr 18, 2024
"sentry.sample_rate": 1,
"sentry.source": "route",
"url": "/test-error"
"url": "http://localhost:3030/test-error"
Copy link
Member Author

Choose a reason for hiding this comment

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

url is now always a full URL, which is actually better than what we had before.

@@ -13,7 +13,7 @@
"sample_rate": "1",
"sampled": "true",
"trace_id": "[[ID2]]",
"transaction": "GET /test-error-manual"
"transaction": "test-span"
Copy link
Member Author

Choose a reason for hiding this comment

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

uh, this is wrong! 😬 will look into it.

Copy link
Member Author

Choose a reason for hiding this comment

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

hopefully fixed here: getsentry/sentry-javascript#11683

@mydea mydea changed the title feat: Update express app to v8.0.0-beta.2 feat: Update express app to v8.0.0-beta.3 Apr 22, 2024
@mydea mydea marked this pull request as ready for review April 22, 2024 07:44
@mydea mydea requested review from s1gr1d, lforst and Lms24 April 22, 2024 07:44
@mydea mydea merged commit abff9ae into main Apr 23, 2024
@mydea mydea changed the title feat: Update express app to v8.0.0-beta.3 Update express app from v7 to v8.0.0-beta.3 Apr 23, 2024
@mydea mydea deleted the fn/express-v8 branch April 23, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant