Skip to content

Commit

Permalink
feat: basic grafana faro setup & remove sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Jul 12, 2024
1 parent fc2d11e commit c131dd3
Show file tree
Hide file tree
Showing 10 changed files with 1,252 additions and 694 deletions.
5 changes: 3 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ PUBLIC_DISCORD_INVITE=
PUBLIC_SUPPORT_MAIL=
PUBLIC_GTM_ID=
PUBLIC_GA_ID=
PUBLIC_SENTRY_DSN=
PUBLIC_SENTRY_ENV=dev

PUBLIC_USE_ACCOUNT=

PUBLIC_TELEMETRY_ENDPOINT=
PUBLIC_TELEMETRY_API_KEY=
8 changes: 2 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,5 @@ jobs:
OPENGRAPH_ENDPOINT=https://og.afg.ink
DISCORD_INVITE=https://discord.gg/adofaigg
[email protected]
SENTRY_ENV=staging
SENTRY_ORG=${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_URL=${{ secrets.SENTRY_URL }}
SENTRY_DSN=${{ secrets.SENTRY_DSN }}
PUBLIC_TELEMETRY_ENDPOINT=${{ secrets.TELEMETRY_ENDPOINT }}
PUBLIC_TELEMETRY_API_KEY=${{ secrets.TELEMETRY_API_KEY }}
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,16 @@ ARG SUPPORT_MAIL
ARG GTM_ID
ARG GA_ID
ARG USE_ACCOUNT=false
ARG PUBLIC_TELEMETRY_ENDPOINT
ARG PUBLIC_TELEMETRY_API_KEY

ARG SENTRY_ENV
ARG SENTRY_ORG
ARG SENTRY_PROJECT
ARG SENTRY_AUTH_TOKEN
ARG SENTRY_URL
ARG SENTRY_DSN
ENV IS_RELEASE=1

RUN apk add git && \
PUBLIC_API_ENDPOINT=${API_ENDPOINT} PUBLIC_OPENGRAPH_ENDPOINT=${OPENGRAPH_ENDPOINT} \
PUBLIC_DISCORD_INVITE=${DISCORD_INVITE} PUBLIC_SUPPORT_MAIL=${SUPPORT_MAIL} \
PUBLIC_GTM_ID=${GTM_ID} PUBLIC_GA_ID=${GA_ID} SENTRY_ORG=${SENTRY_ORG} PUBLIC_USE_ACCOUNT=${USE_ACCOUNT} \
PUBLIC_SENTRY_ENV=${SENTRY_ENV} PUBLIC_SENTRY_DSN=${SENTRY_DSN} SENTRY_ORG=${SENTRY_ORG} SENTRY_PROJECT=${SENTRY_PROJECT} \
SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN} PUBLIC_SENTRY_RELEASE=$(git rev-parse --short HEAD) \
SENTRY_URL=${SENTRY_URL} pnpm build && \
PUBLIC_GTM_ID=${GTM_ID} PUBLIC_GA_ID=${GA_ID} PUBLIC_USE_ACCOUNT=${USE_ACCOUNT} \
pnpm build && \
mv static/~partytown build/client/~partytown

RUN apk add jq
Expand Down
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@
"@fontsource/m-plus-rounded-1c": "4.5.10",
"@fontsource/quicksand": "^5.0.16",
"@fontsource/roboto-mono": "^5.0.16",
"@grafana/faro-web-sdk": "^1.8.2",
"@playwright/test": "^1.40.1",
"@sentry/browser": "^7.88.0",
"@sentry/integrations": "^7.88.0",
"@sentry/rrweb": "^0.3.3",
"@sentry/tracing": "^7.88.0",
"@storybook/addon-essentials": "^7.6.5",
"@storybook/addon-interactions": "^7.6.5",
"@storybook/addon-links": "^7.6.5",
Expand All @@ -53,7 +50,7 @@
"@sveltejs/adapter-node": "^2.0.0",
"@sveltejs/adapter-vercel": "^4.0.2",
"@sveltejs/kit": "^2.0.2",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@tanstack/svelte-query": "^5.45.0",
"@tanstack/svelte-table": "^8.17.3",
"@tanstack/svelte-virtual": "^3.5.1",
Expand Down Expand Up @@ -113,18 +110,17 @@
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"unzipper": "^0.10.14",
"vite": "^5.0.10",
"vite": "^5.3.3",
"vite-plugin-glob": "^0.3.2",
"vite-plugin-preload": "^0.3.1",
"webpack": "^5.89.0"
},
"type": "module",
"dependencies": {
"@builder.io/partytown": "^0.8.1",
"@sentry/sveltekit": "^7.88.0",
"axios": "^1.6.2",
"compression": "^1.7.4",
"express": "^4.18.2",
"express": "^4.19.2",
"github-markdown-css": "^5.5.0",
"sharp": "^0.33.1"
},
Expand Down
Loading

0 comments on commit c131dd3

Please sign in to comment.