Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CLOUDFLARE.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,12 @@ Expected results:

## Recovery

The router retains custom logs and uncaught exceptions at full sampling. Routine
per-request invocation logs and tracing are disabled, and request URL query strings
are redacted. This preserves failure evidence without a log for every successful
asset request. The configuration takes effect after Worker deployment and cannot
recover errors from periods when logging was disabled. Inspect Worker logs alongside
HTTP response-status analytics; an explicit HTTP 5xx response need not throw an exception.

For a router regression, use Cloudflare's deployment history to roll back to the
prior Worker version, then rerun live smoke. Routine deployment does not change DNS.
12 changes: 12 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ routes = [
{ pattern = "documentation.openclaw.ai/*", zone_name = "openclaw.ai" }
]

[observability]
redact_query_string = true

[observability.logs]
enabled = true
head_sampling_rate = 1
# Keep failure logs without storing an invocation record for every request.
invocation_logs = false

[observability.traces]
enabled = false

[[r2_buckets]]
binding = "DOCS_BUCKET"
bucket_name = "openclaw-docs"
Loading