[wrangler] Add observability query endpoint to agent-facing Local Explorer hint - #14871
Merged
NuroDev merged 7 commits intoJul 28, 2026
Merged
Conversation
…lorer hint The hint wrangler dev prints for AI-agent sessions listed every Local Explorer route except the local observability SQL endpoint. Add POST /cdn-cgi/explorer/api/local/observability/query so agents can discover the read-only trace/log query endpoint (spans and logs tables) alongside the existing binding and storage routes.
🦋 Changeset detectedLatest commit: 6b768d8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
workers-devprod
requested review from
a team and
emily-shen
and removed request for
a team
July 27, 2026 09:07
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers |
@cloudflare/autoconfig
@cloudflare/config
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
emily-shen
approved these changes
Jul 28, 2026
workers-devprod
approved these changes
Jul 28, 2026
workers-devprod
left a comment
Contributor
There was a problem hiding this comment.
Codeowners reviews satisfied
Co-authored-by: emily-shen <69125074+emily-shen@users.noreply.github.com>
NuroDev
self-requested a review
July 28, 2026 20:03
NuroDev
approved these changes
Jul 28, 2026
NuroDev
enabled auto-merge (squash)
July 28, 2026 20:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the local observability query endpoint to the agent-facing Local Explorer hint that
wrangler devprints for AI-agent sessions.The hint introduced in #14688 lists every Local Explorer route (D1, KV, R2, Durable Objects, Workflows, local workers) except the local observability SQL endpoint added in #14633. That endpoint is the one an agent needs to inspect what actually happened during an invocation — request traces and
console.*logs — so leaving it out means an agent following the hint can discover every binding except the trace/log store.This adds:
to the printed hint (where
{api}=http://localhost:8787/cdn-cgi/explorer/api), and names the two backing tables (spans,logs) so an agent can write a correct query without first fetching the full ~23k-token OpenAPI document. No behavior change beyond the printed text; the hint still only prints on the existing agent/non-interactive opt-in path.Note
This is a contribution from an AI agent: opencode (claude-opus-4).