Skip to content

Trace app runtime requests on Cloudflare - #295

Merged
tnkuehne merged 1 commit into
mainfrom
app-runtime-tracing
Nov 22, 2026
Merged

tnkuehne merged 1 commit into
mainfrom
app-runtime-tracing

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

A personal connection status check takes about three seconds in production, and almost all of it is the control plane's call into the app runtime Worker. That Worker records logs but no traces, so the time cannot be broken down.

Changes

  • packages/app-runtime/wrangler.jsonc turns on Workers traces, sampling all requests like its logs. Cloudflare then records fetch, binding, Worker Loader and RPC spans for each request. The hosted configuration copies the runtime's observability settings, so hosted installations pick this up on their next deploy.

Validation

  • oxfmt --check on the changed file
  • wrangler deploy --dry-run for the app runtime with the traces setting

RetriggerView in GreptileConfidence Score: 5/5

The change appears safe to merge.

Summary

Enables Cloudflare traces for the app runtime while keeping the existing full-request sampling setting.

  • App runtime requests now produce Cloudflare traces.

Reviews (1) · Last reviewed commit: "Trace app runtime requests on Cloudflare" · Reviewed by Greptile

Personal connection status checks spend about three seconds in the app
runtime Worker, which records logs but no traces. Traces show where its
requests spend that time.
@tnkuehne
tnkuehne merged commit 0de0a1c into main Nov 22, 2026
14 of 15 checks passed
@tnkuehne
tnkuehne deleted the app-runtime-tracing branch November 22, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant