feat: add instrumentation

This commit is contained in:
Arvid Norlin
2024-07-01 11:02:19 +02:00
parent 9b4fde334f
commit edc2216d83
5 changed files with 382 additions and 19 deletions

View File

@@ -8,6 +8,7 @@
"build": "next build",
"predev": "rm -rf .next",
"dev": "PORT=3000 NEXT_PUBLIC_PORT=3000 next dev",
"dev:otel": "OTEL_LOG_LEVEL=debug && NEXT_OTEL_VERBOSE=1 && npm run dev",
"prelint": "rm -rf .next",
"lint": "next lint --max-warnings 0 && tsc",
"prelint:fix": "rm -rf .next",
@@ -25,6 +26,7 @@
"test:unit:watch": "jest --watch"
},
"dependencies": {
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.24",
"@contentstack/live-preview-utils": "^1.4.0",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "^3.3.4",
@@ -36,6 +38,7 @@
"@trpc/client": "^11.0.0-next-beta.318",
"@trpc/react-query": "^11.0.0-next-beta.318",
"@trpc/server": "^11.0.0-next-beta.318",
"@vercel/otel": "^1.9.1",
"class-variance-authority": "^0.7.0",
"clean-deep": "^3.4.0",
"dayjs": "^1.11.10",