Skip to content

Commit

Permalink
feat: instrument sentry (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 authored Feb 17, 2024
1 parent f2b1795 commit 70c2373
Show file tree
Hide file tree
Showing 16 changed files with 1,065 additions and 389 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ ENV PORT=3000

EXPOSE ${PORT}

CMD [ "node", "dist/index.js" ]
CMD [ "node", "--import", "./dist/src/tracing.js", "./dist/src/index.js" ]
34 changes: 0 additions & 34 deletions build.js

This file was deleted.

17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/index.js",
"type": "module",
"scripts": {
"dev:start": "node --experimental-loader @esbuild-kit/esm-loader --env-file .env src/index.ts",
"dev:start": "node --experimental-loader @esbuild-kit/esm-loader --env-file .env -r src/tracing.ts src/index.ts",
"dev": "nodemon -e ts --watch src --exec \"npm run dev:start\"",
"build": "tsc --noEmit && node build.js",
"build": "tsc && tsc-alias",
"test:unit": "vitest run",
"test:coverage": "vitest run --coverage",
"test:tdd": "vitest",
Expand Down Expand Up @@ -40,19 +40,30 @@
"eslint-plugin-import": "^2.29.1",
"husky": "^8.0.3",
"nodemon": "^3.0.3",
"tsc-alias": "^1.8.8",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.1.3",
"vitest": "^1.3.0"
},
"dependencies": {
"@hono/node-server": "^1.8.0",
"@octokit/webhooks-types": "^7.3.2",
"@opentelemetry/api": "^1.7.0",
"@opentelemetry/context-async-hooks": "^1.21.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.48.0",
"@opentelemetry/instrumentation-http": "^0.48.0",
"@opentelemetry/sdk-metrics": "^1.21.0",
"@opentelemetry/sdk-node": "^0.48.0",
"@opentelemetry/sdk-trace-node": "^1.21.0",
"@sentry/node": "^7.101.1",
"@sentry/opentelemetry": "^7.101.1",
"cheerio": "1.0.0-rc.12",
"colorette": "^2.0.20",
"eventsource": "^2.0.2",
"grammy": "^1.21.1",
"gura": "^1.4.4",
"polka": "1.0.0-next.22",
"hono": "^4.0.3",
"remark-gfm": "^4.0.0",
"remark-html": "^16.0.1",
"remark-parse": "^11.0.0",
Expand Down
Loading

0 comments on commit 70c2373

Please sign in to comment.