Skip to content

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.

"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 Lms24, lforst and s1gr1d 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.

2 participants