Skip to content

Commit

Permalink
feat: enable sentry user feedback and releases (#329) (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Dec 22, 2023
1 parent 699c654 commit 8be007c
Show file tree
Hide file tree
Showing 11 changed files with 278 additions and 39 deletions.
3 changes: 3 additions & 0 deletions backend/app/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import os
import pathlib
from contextlib import asynccontextmanager

Expand All @@ -25,8 +26,10 @@

if settings.SENTRY_DSN: # pragma: no cover
sentry_sdk.init(
environment=os.environ.get("ENVIRONMENT", "production"),
dsn=str(settings.SENTRY_DSN),
enable_tracing=True,
release=f"reev-backend@{settings.REEV_VERSION}",
)

app = FastAPI(
Expand Down
2 changes: 2 additions & 0 deletions frontend/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/// <reference types="vite/client" />

declare const __APP_VERSION__: string
274 changes: 252 additions & 22 deletions frontend/package-lock.json

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

2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"dependencies": {
"@mdi/font": "^7.3.67",
"@reactgular/chunks": "^1.0.1",
"@sentry/browser": "^7.90.0",
"@sentry/integrations": "^7.90.0",
"@sentry/tracing": "^7.89.0",
"@sentry/vue": "^7.89.0",
"@types/luxon": "^3.3.7",
Expand Down
Loading

0 comments on commit 8be007c

Please sign in to comment.