captureException helpers)sentry-trace / baggage between frontend and backendSentry.logger / sentryLogger / frontendLogger) tied to tracesFrontend (attik-frontend)
@sentry/nextjs: client init in src/instrumentation-client.ts (replay + browser tracing, Doppler-driven sample rates), server in sentry.server.config.ts, edge in sentry.edge.config.ts, and withSentryConfig in next.config.js for build-time source map upload.src/util/sentry/sharedConfig.ts (sentryBeforeSend, sentryEnvironment, sentryRelease), trace sampling in src/util/sentry/tracesSamplerConfig.ts.src/components/sentry/SentryAttikScope.tsx (staff session — user, company_id, attik_user_id, surface); portal pay sets tags in src/app/client/job/[slug]/pay-beta/PaymentBetaClient.tsx.src/util/functions/sentry/applySentryTraceHeaders.ts used from callApiServerRoute.ts, useMultiServer.ts, and some API routes (e.g. src/app/api/data-exports/ai-generate-stream/route.ts).src/util/functions/sentry/sentryLoggerCore.ts, frontendLogger.ts, domain helpers (authLog.ts, paymentLog.ts, schedulingLog.ts, fetchLog.ts, observability.ts).src/app/global-error.tsx; tools shell mounts scope via src/app/tools/provider.tsx.NEXT_PUBLIC_SENTRY_DSN, replay rate vars, etc.), and whether to keep parallel Sentry during cutover or remove in one pass.docs/SENTRY_SOURCEMAPS_SETUP.md, disabled workflows under .github/workflows/sentry-sourcemaps-*.yml.disabled).Backend (attik-backend)
src/instrumentation.ts: Express, HTTP, Mongo, Vercel AI, profiling (@sentry/profiling-node), parent-based trace sampling, beforeSend from src/util/functions/sentry/sharedConfig.ts.src/app.ts reads sentry-trace, tags spans, exposes trace ids on res.locals; CORS allows sentry-trace and baggage.src/util/functions/sentry/requestScope.ts (applyAuthenticatedSentryScope, portal client-token identity, scheduler contact header); used from src/routes/login.ts with sentryExpressTransactionNamingMiddleware.src/util/functions/errorHandling/requestError.ts captures exceptions with scope; helpers in src/util/functions/sentry/errorCapture.ts, sentryLogger.ts, domain logs (paymentRouteLog.ts, aiSentryWrapper.ts, etc.)..github/workflows/sentry-release-deploy.yml, .github/actions/sentry-upload/action.yml.sentryLogger call sites across routes and workers (migrate to PostHog logging/events vs thin adapter).Mobile (attik-mobile)
lib/sentry.ts (@sentry/react-native, routing integration, Sentry.wrap on app/_layout.tsx); user/tags in contexts/AuthContext.tsx; trace headers on lib/api.ts and lib/apiClient.ts; Expo plugin in app.config.js, Metro via metro.config.js.Config / ops
Out of scope for this ticket (unless explicitly expanded)
attik-frontend/src/instrumentation-client.ts, attik-frontend/src/components/sentry/SentryAttikScope.tsxattik-backend/src/instrumentation.ts, attik-backend/src/util/functions/sentry/requestScope.tsattik-mobile/lib/sentry.tsPlease authenticate to join the conversation.
In Progress
Main App
8 days ago
Linear
Get notified by email when there are changes.
In Progress
Main App
8 days ago
Linear
Get notified by email when there are changes.