<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/your-agent-can-now-debug-workers-with-local-tracing-4b9dpbetb" -->

---
title: Your agent can now debug Workers with local tracing
description: Cloudflare&#x27;s wrangler dev and vite dev now automatically capture OpenTelemetry traces for local Worker invocations, enabling AI coding agents to debug failures...
canonical: https://daily.dev/posts/your-agent-can-now-debug-workers-with-local-tracing-4b9dpbetb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Your agent can now debug Workers with local tracing | daily.dev
og:description: Cloudflare&#x27;s wrangler dev and vite dev now automatically capture OpenTelemetry traces for local Worker invocations, enabling AI coding agents to debug failures...
og:url: https://daily.dev/posts/your-agent-can-now-debug-workers-with-local-tracing-4b9dpbetb
og:image: https://api.daily.dev/og/posts/4B9dpbEtB.png
og:image:alt: Your agent can now debug Workers with local tracing
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Your agent can now debug Workers with local tracing

**[Cloudflare](https://daily.dev/sources/cloudflare)** · 5 min read · 1 upvotes · 0 comments

## Summary

Cloudflare's wrangler dev and vite dev now automatically capture OpenTelemetry traces for local Worker invocations, enabling AI coding agents to debug failures without deployment. When an agent session is detected, the Local Explorer API is surfaced automatically — agents can query structured traces, inspect binding state (D1, KV, R2, Durable Objects, Queues), and verify fixes in a single local loop. The runtime-level instrumentation in workerd captures fetch calls, binding interactions, and handler lifecycles with no SDK or code changes required. Traces are stored in a SQLite-backed Durable Object and exposed via a REST API with an OpenAPI schema for agent discovery. Human developers can visualize the same data in the browser-based Local Explorer interface.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.cloudflare.com/local-tracing>

## Similar posts on daily.dev

- [Announcing Workers automatic tracing, now in open beta](https://daily.dev/posts/announcing-workers-automatic-tracing-now-in-open-beta-o62faua6n) · Cloudflare · 1 upvotes · 0 comments
- [Send OpenTelemetry traces and logs from Cloudflare Workers to Grafana Cloud](https://daily.dev/posts/send-opentelemetry-traces-and-logs-from-cloudflare-workers-to-grafana-cloud-nh2kbntzf) · Grafana Labs · 1 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#observability](https://daily.dev/tags/observability), [#cloudflare](https://daily.dev/tags/cloudflare), [#opentelemetry](https://daily.dev/tags/opentelemetry)

[View this post on daily.dev](https://daily.dev/posts/your-agent-can-now-debug-workers-with-local-tracing-4b9dpbetb)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Your agent can now debug Workers with local tracing","url":"https://daily.dev/posts/your-agent-can-now-debug-workers-with-local-tracing-4b9dpbetb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/your-agent-can-now-debug-workers-with-local-tracing-4b9dpbetb"},"datePublished":"2026-08-04T13:03:23.753Z","dateModified":"2026-08-10T12:47:56.170Z","description":"Cloudflare's wrangler dev and vite dev now automatically capture OpenTelemetry traces for local Worker invocations, enabling AI coding agents to debug failures...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1dd9d5e205deaf4ce710f8fcb2b75a53?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1dd9d5e205deaf4ce710f8fcb2b75a53?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Cloudflare","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Cloudflare","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/38522e1d11354cd6b7af66f9d4316735","url":"https://daily.dev/sources/cloudflare"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/your-agent-can-now-debug-workers-with-local-tracing-4b9dpbetb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,observability,cloudflare,opentelemetry","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Cloudflare","item":"https://daily.dev/sources/cloudflare"},{"@type":"ListItem","position":3,"name":"Your agent can now debug Workers with local tracing"}]}
```

