[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(), SampleRate: z.int(),
LogLineCount: z.int(), LogLineCount: z.int(),
CaptureNativeCrashes: z.int(), CaptureNativeCrashes: z.int(),
AMRThresholdMS: z.int(), ANRThresholdMs: z.int(),
MessageCount: z.int(), MessageCount: z.int(),
MessageRegex: z.string(), MessageRegex: z.string(),
VersionRegex: z.string(), VersionRegex: z.string(),
+8 -8
View File
@@ -73,15 +73,15 @@ export const configRoutes = new Hono<App>({ strict: false })
}), }),
(c) => (c) =>
c.json({ c.json({
ReportBudget: 125, ReportBudget: 0,
FilterType: 0, FilterType: 0,
SampleRate: 1, SampleRate: 0,
LogLineCount: 50, LogLineCount: 0,
CaptureNativeCrashes: 1, CaptureNativeCrashes: 0,
AMRThresholdMS: 0, ANRThresholdMs: 0,
MessageCount: 1000, MessageCount: 0,
MessageRegex: '^.*$', MessageRegex: '',
VersionRegex: '.*', VersionRegex: '',
}) })
) )
// ShareBaseUrl is derived from the deploy-time base domain; the rest of the // 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`) const res = await exports.default.fetch(`${ORIGIN}/api/config/v1/backtrace`)
expect(res.status).toBe(200) expect(res.status).toBe(200)
const body = (await res.json()) as { ReportBudget: number; VersionRegex: string } 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 () => { test('GET /api/versioncheck/v4 reports current for the matching build', async () => {