diff --git a/.changeset/cool-frogs-add.md b/.changeset/cool-frogs-add.md new file mode 100644 index 00000000..417c86a6 --- /dev/null +++ b/.changeset/cool-frogs-add.md @@ -0,0 +1,5 @@ +--- +'backend': patch +--- + +prisma sentry setup diff --git a/apps/api/sentry.ts b/apps/api/sentry.ts index 8ea129b7..da3fd909 100644 --- a/apps/api/sentry.ts +++ b/apps/api/sentry.ts @@ -1,3 +1,4 @@ +import { PrismaInstrumentation } from '@prisma/instrumentation'; import * as Sentry from '@sentry/node'; import { env } from '../env'; @@ -12,6 +13,10 @@ export const initApiSentry = () => { Sentry.captureConsoleIntegration({ levels: ['error', 'warn'], }), + Sentry.prismaIntegration({ + // Override the default instrumentation that Sentry uses + prismaInstrumentation: new PrismaInstrumentation(), + }), ], // Add Tracing by setting tracesSampleRate diff --git a/bun.lockb b/bun.lockb index 96031665..19bd75bb 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 99ea0379..ed6f6c78 100644 --- a/package.json +++ b/package.json @@ -19,65 +19,66 @@ }, "dependencies": { "@apollo/server": "^4.11.3", - "@aws-sdk/client-cloudwatch": "^3.388.0", - "@aws-sdk/client-secrets-manager": "^3.195.0", - "@aws-sdk/client-sqs": "^3.137.0", + "@aws-sdk/client-cloudwatch": "^3.734.0", + "@aws-sdk/client-secrets-manager": "^3.734.0", + "@aws-sdk/client-sqs": "^3.734.0", "@balancer-labs/balancer-maths": "^0.0.20", - "@balancer/sdk": "^1.1.0", - "@ethersproject/address": "^5.6.0", - "@ethersproject/bignumber": "^5.6.0", - "@ethersproject/constants": "^5.6.0", - "@googleapis/sheets": "^9.0.0", - "@prisma/client": "^6.2.1", - "@sanity/client": "^2.23.1", - "@sentry/integrations": "^7.0.0", - "@sentry/node": "^8.0.0", - "@sentry/tracing": "^7.0.0", - "abitype": "^1.0.0", + "@balancer/sdk": "^1.4.1", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@googleapis/sheets": "^9.3.1", + "@prisma/client": "^6.3.0", + "@prisma/instrumentation": "^6.3.0", + "@sanity/client": "^2.23.2", + "@sentry/integrations": "^7.114.0", + "@sentry/node": "^8.52.0", + "@sentry/tracing": "^7.120.3", + "abitype": "^1.0.8", "axios": "^0.24.0", - "bignumber.js": "^9.0.2", - "decimal.js": "^10.3.1", + "bignumber.js": "^9.1.2", + "decimal.js": "^10.5.0", "dotenv": "^10.0.0", - "ethers": "^5.5.1", - "express": "^4.17.1", - "graphql": "^16.0.1", - "graphql-request": "^3.6.1", + "ethers": "^5.7.2", + "express": "^4.21.2", + "graphql": "^16.10.0", + "graphql-request": "^3.7.0", "graphql-tag": "^2.12.6", - "helmet": "^5.0.2", + "helmet": "^5.1.1", "limiter": "^2.1.0", - "lodash": "^4.17.15", + "lodash": "^4.17.21", "memory-cache": "^0.2.0", - "moment-timezone": "^0.5.34", - "prisma": "^6.2.1", + "moment-timezone": "^0.5.47", + "prisma": "^6.3.0", "stellate": "2.7.1", - "ts-dotenv": "^0.8.1", - "viem": "^2.21.55" + "ts-dotenv": "^0.8.4", + "viem": "^2.22.16" }, "devDependencies": { - "@changesets/cli": "^2.27.5", + "@changesets/cli": "^2.27.12", "@faker-js/faker": "^8.4.1", - "@graphql-codegen/add": "^3.1.0", - "@graphql-codegen/cli": "^2.0.0", - "@graphql-codegen/introspection": "^2.1.0", - "@graphql-codegen/schema-ast": "^2.4.0", + "@graphql-codegen/add": "^3.2.3", + "@graphql-codegen/cli": "^2.16.5", + "@graphql-codegen/introspection": "^2.2.3", + "@graphql-codegen/schema-ast": "^2.6.1", "@graphql-codegen/typescript": "2.4.0", - "@graphql-codegen/typescript-document-nodes": "^2.2.0", - "@graphql-codegen/typescript-graphql-request": "^4.3.0", - "@graphql-codegen/typescript-operations": "^2.2.0", + "@graphql-codegen/typescript-document-nodes": "^2.3.13", + "@graphql-codegen/typescript-graphql-request": "^4.5.9", + "@graphql-codegen/typescript-operations": "^2.5.13", "@graphql-codegen/typescript-resolvers": "2.4.1", - "@graphql-tools/schema": "^8.3.1", - "@types/lodash": "^4.14.177", - "@types/memory-cache": "^0.2.1", - "@types/node": "^18.0.0", + "@graphql-tools/schema": "^8.5.1", + "@types/lodash": "^4.17.15", + "@types/memory-cache": "^0.2.6", + "@types/node": "^18.19.74", "@viem/anvil": "0.0.7", "execa": "^4.1.0", "fishery": "^2.2.2", - "msw": "^0.47.3", - "prettier": "^2.0.2", - "testcontainers": "^8.0.0", + "msw": "^0.47.4", + "prettier": "^2.8.8", + "testcontainers": "^8.16.0", "tsconfig-paths": "^4.2.0", - "typescript": "^5.3.3", + "typescript": "^5.7.3", "vitest": "^0.32.4", - "vitest-mock-extended": "^1.1.3" + "vitest-mock-extended": "^1.3.2" } }