mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 14:07:54 +08:00
feat: name field for sentry
This commit is contained in:
@@ -35,6 +35,7 @@ module.exports = async (ctx, next) => {
|
||||
if (config.sentry) {
|
||||
Sentry.withScope((scope) => {
|
||||
scope.setTag('route', ctx._matchedRoute);
|
||||
scope.setTag('name', ctx.request.path.split('/')[1]);
|
||||
scope.addEventProcessor((event) => Sentry.Handlers.parseRequest(event, ctx.request));
|
||||
Sentry.captureException(err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user