From 337367da52b93c4e4fa7b0ac8e066e33da2f144b Mon Sep 17 00:00:00 2001 From: Devin Zuczek Date: Thu, 22 Oct 2026 10:35:45 -0400 Subject: [PATCH] [api] turn off backtraces --- apps/api/src/openapi.ts | 2 +- apps/api/src/routes/config.ts | 16 ++++++++-------- apps/api/src/test/integration/api.test.ts | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/api/src/openapi.ts b/apps/api/src/openapi.ts index cd26c44..58776d1 100644 --- a/apps/api/src/openapi.ts +++ b/apps/api/src/openapi.ts @@ -143,7 +143,7 @@ export const BacktraceConfig = z.object({ SampleRate: z.int(), LogLineCount: z.int(), CaptureNativeCrashes: z.int(), - AMRThresholdMS: z.int(), + ANRThresholdMs: z.int(), MessageCount: z.int(), MessageRegex: z.string(), VersionRegex: z.string(), diff --git a/apps/api/src/routes/config.ts b/apps/api/src/routes/config.ts index 87ec2ef..4ff485a 100644 --- a/apps/api/src/routes/config.ts +++ b/apps/api/src/routes/config.ts @@ -73,15 +73,15 @@ export const configRoutes = new Hono({ strict: false }) }), (c) => c.json({ - ReportBudget: 125, + ReportBudget: 0, FilterType: 0, - SampleRate: 1, - LogLineCount: 50, - CaptureNativeCrashes: 1, - AMRThresholdMS: 0, - MessageCount: 1000, - MessageRegex: '^.*$', - VersionRegex: '.*', + SampleRate: 0, + LogLineCount: 0, + CaptureNativeCrashes: 0, + ANRThresholdMs: 0, + MessageCount: 0, + MessageRegex: '', + VersionRegex: '', }) ) // ShareBaseUrl is derived from the deploy-time base domain; the rest of the diff --git a/apps/api/src/test/integration/api.test.ts b/apps/api/src/test/integration/api.test.ts index 31bf505..9a8b752 100644 --- a/apps/api/src/test/integration/api.test.ts +++ b/apps/api/src/test/integration/api.test.ts @@ -289,7 +289,7 @@ describe('public endpoints', () => { const res = await exports.default.fetch(`${ORIGIN}/api/config/v1/backtrace`) expect(res.status).toBe(200) const body = (await res.json()) as { ReportBudget: number; VersionRegex: string } - expect(body).toMatchObject({ ReportBudget: 125, VersionRegex: '.*' }) + expect(body).toMatchObject({ ReportBudget: 0, ANRThresholdMs: 0, VersionRegex: '' }) }) test('GET /api/versioncheck/v4 reports current for the matching build', async () => {