📈 (analytics) implement sentry error tracing system
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { captureException } from "@sentry/node";
|
||||
import { Context } from "elysia";
|
||||
|
||||
/**
|
||||
@ -69,6 +70,8 @@ export function returnErrorResponse<T>(
|
||||
) {
|
||||
set.status = status;
|
||||
|
||||
if (errorDetails) captureException(errorDetails);
|
||||
|
||||
return {
|
||||
status: "error",
|
||||
message,
|
||||
|
||||
Reference in New Issue
Block a user