Skip to content

Commit

Permalink
feat(sentry): add dummy sentry endpoint test
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Jan 17, 2024
1 parent 3525d0c commit d4dad64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/health/readyz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export const readyz = new Hono();

readyz.get("/", ({ text }) => text(`readyz check passed`));

readyz.get("/sentry/error", async ({ text }) => {
throw new Error("Sentry error");
});

readyz.get("/drizzle/moncomptepro", async ({ text }) => {
const [, is_ok] = await to(moncomptepro_pg.execute(sql`SELECT 1`));
return text("[+]drizzle moncomptepro connection " + (is_ok ? "OK" : "FAIL"));
Expand Down

0 comments on commit d4dad64

Please sign in to comment.