Skip to main content

MAX_FIELD_LENGTH

@forge/monorepo


@forge/monorepo / backend/src / MAX_FIELD_LENGTH

Variable: MAX_FIELD_LENGTH

const MAX_FIELD_LENGTH: 120 = 120

Defined in: backend/src/telemetry/redaction.ts:106

The cap on a string field.

120 characters: comfortably longer than every id, model name and error code in the list, and far shorter than a prompt, a message or a signed URL. Deliberately not generous — the cap is a bound on a leak, and a generous bound is a leak.