Skip to content

feat: integrate evlog observability - #3

Closed
onmax wants to merge 29 commits into
mainfrom
agent/evlog-observability
Closed

onmax wants to merge 29 commits into
mainfrom
agent/evlog-observability

Conversation

@onmax

@onmax onmax commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

Summary

  • install Evlog's Nitro v3 integration so API requests emit one structured wide event
  • replace Drop's manual JSON counters and app-owned HTTP errors with stable Evlog error codes while preserving original causes
  • attach recoverable upload-stat failures to the request event and emit explicit operation events for Queue deliveries and Schedule runs
  • verify the public structured error code in the deployed-flow smoke test

Why

PR #2 introduced code-image rendering with a manual console.error(JSON.stringify(...)) counter before translating the failure into an HTTP response. That splits one failure across unrelated log and response paths, loses request context, and repeats an existing pattern in uploads and background work.

Evlog keeps the safe client response, machine-readable error code, original cause, request metadata, and operation timing in one structured event. Queue and Schedule handlers create their own operation events because they run outside an HTTP request.

This PR is stacked on #2 and targets agent/code-images.

Checks

  • pnpm typecheck
  • node --check test/e2e/deployed-flow.mjs
  • DROP_URL=https://vitehub-drop-preview.maximogarciamtnez.workers.dev pnpm test:e2e:deployed passed immediately after this branch deployed
  • local Wrangler verification of the DROP_FILE_REQUIRED response and API request event
  • local Browser Run failure verification of DROP_CODE_IMAGE_RENDER_FAILED with the original BROWSER_PROVIDER_ERROR cause
  • local Queue failure verification of DROP_IMAGE_OPTIMIZATION_FAILED with the original Sandbox cause
  • local scheduled-trigger verification of the successful code-image-cleanup operation event

The shared preview Worker can be overwritten by a later build from the base PR; Drop cannot use Cloudflare's immutable versioned preview URLs because this Worker contains Durable Objects.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
vitehub-drop-preview 2e1ad8c Jul 31 2026, 03:11 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
vitehub-drop 2e1ad8c Jul 31 2026, 02:51 PM

Base automatically changed from agent/code-images to main July 31, 2026 14:45
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