[api] turn off backtraces

This commit is contained in:
Devin Zuczek
2026-10-22 10:35:45 -04:00
parent 7abef376b6
commit 337367da52
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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(),
+8 -8
View File
@@ -73,15 +73,15 @@ export const configRoutes = new Hono<App>({ 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
+1 -1
View File
@@ -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 () => {