Skip to content

Commit

Permalink
Merge pull request #18 from mashafrancis/main
Browse files Browse the repository at this point in the history
feat: add openstatus rum provider
  • Loading branch information
mashafrancis committed May 1, 2024
2 parents bc87c73 + 55b43af commit bdb2770
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 58 deletions.
3 changes: 1 addition & 2 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "dotenv -e ../../.env -- tsx watch src/index.ts",
"dev": "bun run --hot src/index.ts",
"start": "bun run src/index.ts",
"build": "tsup",
"setup:geo": "tsx setup/geo.ts",
"setup:clickhouse": "dotenv tsx setup/clickhouse-db.ts",
"serve": "pm2 start dist/index.js --name heimdall"
Expand Down
2 changes: 2 additions & 0 deletions apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import '@/styles/globals.css'
// import Heimdall from '@heimdall-logs/tracker/react'

import { constructMetadata } from '@/lib/construct-metadata'
import { OpenStatusProvider } from '@openstatus/next-monitoring'
// import '@/styles/syntax-highlighter.module.css';
import Analytics from '../components/analytics'

Expand All @@ -30,6 +31,7 @@ export default function RootLayout({
GeistMono.variable,
)}
>
<OpenStatusProvider dsn="heimdall" />
<ClientProvider>
{children}
<Toaster />
Expand Down
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@heroicons/react": "2.1.3",
"@hookform/resolvers": "^3.3.4",
"@libsql/client": "0.6.0",
"@openstatus/next-monitoring": "^0.0.3",
"@opentelemetry/api": "1.8.0",
"@opentelemetry/instrumentation": "0.51.0",
"@opentelemetry/resources": "1.24.0",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"email": "francismasha96@gmail.com"
},
"scripts": {
"build": "turbo build --log-order=grouped",
"dev": "turbo run dev --parallel",
"build": "dotenv -- turbo build --log-order=grouped --parallel",
"dev": "dotenv -- turbo run dev --parallel",
"start": "turbo run start",
"format": "biome format --write .",
"format:fix": "biome format --apply .",
Expand Down
28 changes: 24 additions & 4 deletions packages/tracker/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"sourceMap": true,
"jsx": "react",
"moduleResolution": "node",
"target": "ES2020",
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "ES2020",
"moduleResolution": "Node",
"resolveJsonModule": true,
"esModuleInterop": true,
"allowJs": true,
"checkJs": true,
"outDir": "./dist",
"noEmit": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"removeComments": true,
"strict": false,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"useUnknownInCatchVariables": true,
"noUncheckedIndexedAccess": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"useDefineForClassFields": true,
"types": ["vitest/globals"]
},
"include": ["src/**/*", "test/**/*", "tsup.config.ts", "vite.config.ts"],
Expand Down
14 changes: 14 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 0 additions & 49 deletions tsconfig.json

This file was deleted.

11 changes: 10 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,14 @@
"outputs": [],
"cache": true
}
}
},
"globalEnv": [
"DATABASE_URL",
"NEXTAUTH_SECRET",
"RESEND_EMAIL_SECRET",
"CLICKHOUSE_HOST",
"CLICKHOUSE_PASSWORD",
"CLICKHOUSE_USERNAME",
"CLICKHOUSE_DB"
]
}

0 comments on commit bdb2770

Please sign in to comment.