You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(stdlib,server,store,code-gen): support Sentry v11 (#4177) f13b7a
Compas requires @sentry/node v11 or higher, and compasWithSentry throws on older versions. Follow the example on compasWithSentry for the recommended Sentry.init() options.
compasWithSentry no longer accepts options. sendQueriesAsSpans is removed, since Sentry's default postgresJsIntegration traces all queries. Call Sentry.init() and compasWithSentry before newPostgresConnection, otherwise queries are not traced.
Insight events no longer create spans, and the logger no longer adds breadcrumbs. Add Sentry.pinoIntegration() to ship logs to Sentry instead.
Request spans are Sentry's http.server spans named after the matched route, for example GET /user/:id instead of router.user.single. The old name is available on the compas.route attribute. Queue job spans use the queue.process op instead of queue.task. Update alerts or dashboards that filter on the old names.
@compas/store no longer re-exports postgres. Import it from postgres directly, after Sentry.init() if its queries should be traced.
Dependency updates
build(deps): bump github/codeql-action from 4.37.8 to 4.38.1 (#4170)