Wrangler observability can redact query strings
Introduced 2026-09-01 · score 0.96
HOW TO USE IT
If the Worker should omit request URL query strings from observability logs and traces, set `observability.redact_query_string` to `true` in `wrangler.json`, or `observability.redactQueryString` to `true` in the experimental `cloudflare.config.ts` format.
{"observability":{"redact_query_string":true}}export default defineConfig({
observability: { redactQueryString: true },
});WHY THIS HELPS
Configure a Worker project to omit request URL query strings from observability logs and traces.
REQUIREMENTS AND LIMITATIONS
- Version: 4.128.0
- Availability: The `cloudflare.config.ts` format is experimental.
- observability.redact_query_string: Boolean; whether query strings are removed from request URLs in logs and traces. Default: false.
- observability.redactQueryString: Boolean; whether query strings are removed from request URLs in logs and traces. Default: false.
- Prerequisite: The `cloudflare.config.ts` format is experimental.
FIRST-PARTY EVIDENCE
- https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.128.0
- https://developers.cloudflare.com/workers/wrangler/configuration/
- https://developers.cloudflare.com/cf/projects/cloudflare-config/
Check the installed version and the source before using it. Entry JSON