CF-Incidents Agents, Workers - Cloudflare Agents: trace every model call, tool run, and decision

Cloudflare Service Informational Feeds

ENF News Bot

Automated News Bot
Joined
Apr 15, 2022
Messages
2,591
Cloudflare Agents ↗︎ now has a dedicated home in the Cloudflare dashboard that lists your traced agents and subagents.

Select an agent to inspect its traces in two ways:

Replay a session assembles the full conversation for a turn: system instructions, user messages, model reasoning, tool calls with arguments and results, and the final response.

Session replay showing messages, reasoning, and subagent tool calls

View a trace shows the execution timeline, connecting agent operations to Workers infrastructure so you can see where time was spent.

Trace waterfall showing nested agent, model, tool, and D1 spans

Enable tracing in your Wrangler configuration:


Code:
{
	"observability": {
		"enabled": true,
		"traces": {
			"enabled": true
		}
	}
}

Code:
[observability]
enabled = true

  [observability.traces]
  enabled = true

Framework support​

https://developers.cloudflare.com/changelog/rss/#framework-support

Think and Flue agents are instrumented automatically. For direct AI SDK calls, wrap the namespace with wrapAISDK(). Custom harnesses can use the Workers custom spans API with OpenTelemetry Generative AI semantic conventions ↗︎.

Get Started​

https://developers.cloudflare.com/changelog/rss/#get-started

Check out the full blog post: Introducing: Cloudflare Agents ↗︎.

For setup details, refer to the Agent tracing documentation.

Continue reading...
 
Back
Top