Openstatus www.openstatus.dev

๐Ÿฅ… add sentry to server (#414)

* ๐Ÿฅ… ad sentry to server

* ๐Ÿ˜ fix format

authored by

Thibault Le Ouay and committed by
GitHub
e886e47e 5efa7041

+58 -2
+3 -2
apps/server/package.json
··· 10 10 "test": "vitest run" 11 11 }, 12 12 "dependencies": { 13 + "@hono/sentry": "^1.0.0", 13 14 "@hono/zod-openapi": "0.7.1", 14 15 "@openstatus/db": "workspace:*", 15 16 "@openstatus/notification-emails": "workspace:*", ··· 24 25 }, 25 26 "devDependencies": { 26 27 "@openstatus/tsconfig": "workspace:*", 27 - "vitest": "0.34.6", 28 - "dotenv": "16.3.1" 28 + "dotenv": "16.3.1", 29 + "vitest": "0.34.6" 29 30 } 30 31 }
+2
apps/server/src/index.ts
··· 1 + import { sentry } from "@hono/sentry"; 1 2 import { Hono } from "hono"; 2 3 3 4 import { checkerRoute } from "./checker"; ··· 7 8 import { VercelIngest } from "./vercel"; 8 9 9 10 const app = new Hono(); 11 + app.use("*", sentry({ dsn: process.env.SENTRY_DSN })); 10 12 11 13 /** 12 14 * Vercel Integration
+53
pnpm-lock.yaml
··· 78 78 79 79 apps/server: 80 80 dependencies: 81 + '@hono/sentry': 82 + specifier: ^1.0.0 83 + version: 1.0.0(hono@3.7.6) 81 84 '@hono/zod-openapi': 82 85 specifier: 0.7.1 83 86 version: 0.7.1(hono@3.7.6)(zod@3.22.2) ··· 2191 2194 tailwindcss: ^3.0 2192 2195 dependencies: 2193 2196 tailwindcss: 3.3.2 2197 + dev: false 2198 + 2199 + /@hono/sentry@1.0.0(hono@3.7.6): 2200 + resolution: {integrity: sha512-GbPxgpGuasM2zRCSaA77MPWu4KDcuk/EMf7JJykjCvnOTbjmtr7FovNxsvg7xlXCIjZDgLmqBaoJMi3AxbeIAA==} 2201 + peerDependencies: 2202 + hono: 3.* 2203 + dependencies: 2204 + hono: 3.7.6 2205 + toucan-js: 3.3.0 2194 2206 dev: false 2195 2207 2196 2208 /@hono/zod-openapi@0.7.1(hono@3.7.6)(zod@3.22.2): ··· 4655 4667 - supports-color 4656 4668 dev: false 4657 4669 4670 + /@sentry/core@7.70.0: 4671 + resolution: {integrity: sha512-voUsGVM+jwRp99AQYFnRvr7sVd2tUhIMj1L6F42LtD3vp7t5ZnKp3NpXagtFW2vWzXESfyJUBhM0qI/bFvn7ZA==} 4672 + engines: {node: '>=8'} 4673 + dependencies: 4674 + '@sentry/types': 7.70.0 4675 + '@sentry/utils': 7.70.0 4676 + tslib: 2.6.2 4677 + dev: false 4678 + 4658 4679 /@sentry/core@7.73.0: 4659 4680 resolution: {integrity: sha512-9FEz4Gq848LOgVN2OxJGYuQqxv7cIVw69VlAzWHEm3njt8mjvlTq+7UiFsGRo84+59V2FQuHxzA7vVjl90WfSg==} 4660 4681 engines: {node: '>=8'} 4661 4682 dependencies: 4662 4683 '@sentry/types': 7.73.0 4663 4684 '@sentry/utils': 7.73.0 4685 + tslib: 2.6.2 4686 + dev: false 4687 + 4688 + /@sentry/integrations@7.70.0: 4689 + resolution: {integrity: sha512-ffIEuiElROzl4IpYX0O7vtPaadXVycPtyjq86YTHjd2TUFcYuQTPBm5UjEVE0/sSNNCdfWYxNThU/fVyq93l1g==} 4690 + engines: {node: '>=8'} 4691 + dependencies: 4692 + '@sentry/types': 7.70.0 4693 + '@sentry/utils': 7.70.0 4694 + localforage: 1.10.0 4664 4695 tslib: 2.6.2 4665 4696 dev: false 4666 4697 ··· 4745 4776 '@sentry/utils': 7.73.0 4746 4777 dev: false 4747 4778 4779 + /@sentry/types@7.70.0: 4780 + resolution: {integrity: sha512-rY4DqpiDBtXSk4MDNBH3dwWqfPbNBI/9GA7Y5WJSIcObBtfBKp0fzYliHJZD0pgM7d4DPFrDn42K9Iiumgymkw==} 4781 + engines: {node: '>=8'} 4782 + dev: false 4783 + 4748 4784 /@sentry/types@7.73.0: 4749 4785 resolution: {integrity: sha512-/v8++bly8jW7r4cP2wswYiiVpn7eLLcqwnfPUMeCQze4zj3F3nTRIKc9BGHzU0V+fhHa3RwRC2ksqTGq1oJMDg==} 4750 4786 engines: {node: '>=8'} 4787 + dev: false 4788 + 4789 + /@sentry/utils@7.70.0: 4790 + resolution: {integrity: sha512-0cChMH0lsGp+5I3D4wOHWwjFN19HVrGUs7iWTLTO5St3EaVbdeLbI1vFXHxMxvopbwgpeZafbreHw/loIdZKpw==} 4791 + engines: {node: '>=8'} 4792 + dependencies: 4793 + '@sentry/types': 7.70.0 4794 + tslib: 2.6.2 4751 4795 dev: false 4752 4796 4753 4797 /@sentry/utils@7.73.0: ··· 14550 14594 14551 14595 /toml@3.0.0: 14552 14596 resolution: {integrity: sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==} 14597 + dev: false 14598 + 14599 + /toucan-js@3.3.0: 14600 + resolution: {integrity: sha512-G3RZpX0SiLXq62UkQQyKuZKkB6yKrnp73Y97lh+cBt/fQLoj9YXJJ5IZ8YZ1Dq5nxGpSale+xpuGfUd4QLKcXA==} 14601 + dependencies: 14602 + '@sentry/core': 7.70.0 14603 + '@sentry/integrations': 7.70.0 14604 + '@sentry/types': 7.70.0 14605 + '@sentry/utils': 7.70.0 14553 14606 dev: false 14554 14607 14555 14608 /tough-cookie@4.1.3: