Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

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

Merged
mydea merged 2 commits into
mainfrom
fn/express-v8
Apr 23, 2024
Merged

mydea merged 2 commits into
mainfrom
fn/express-v8

Conversation

@mydea

@mydea mydea commented Apr 18, 2024 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant