telemetry operation emits events to Cloudflare Analytics Engine for aggregated metrics, billing dashboards, and trend analysis.
Telemetry vs Observability: Telemetry is for business metrics (counts, rates, costs). For debugging traces and logs, use
logger in your agent code or enable observability.Quick Start
Configuration
Input
| Field | Type | Description |
|---|---|---|
blobs | string[] | String dimensions (up to 20). First is typically event name |
doubles | number[] | Numeric metrics (up to 20) |
indexes | string[] | Index field for fast filtering (1 per event) |
Output
Examples
Track Order Events
Track AI Usage
Track Document Processing
Programmatic Usage
In TypeScript agents, usectx.telemetry:
Available Methods
Analytics Engine Limits
| Field | Limit |
|---|---|
| Blobs (strings) | 20 per event |
| Doubles (numbers) | 20 per event |
| Indexes | 1 per event |
| Blob max length | 1024 bytes |
Standard Event Schema
Conductor uses a standardized blob/double layout for auto-instrumentation:| Position | Field | Description |
|---|---|---|
| blob1 | name | Event or agent name |
| blob2 | status | success, error, timeout |
| blob3 | environment | prod, staging, latest |
| blob4 | context | Error type or user ID |
| double1 | duration_ms | Execution time |
| double2 | input_tokens | Tokens in prompt |
| double3 | output_tokens | Tokens in response |
| double4 | cost_usd | Estimated cost |
| index1 | project_id | For filtering |
Querying Analytics
Use the Cloudflare dashboard or SQL API to query your telemetry:Setup
1. Create Analytics Dataset
In Cloudflare dashboard: Workers & Pages → Analytics Engine → Create Dataset2. Add Binding to wrangler.toml
3. Use in Ensembles
Error Handling
Telemetry failures are non-blocking - they never crash your application:Related
- Observability - Debugging traces and logs
- Location Context - Geographic data for analytics
- storage - Persist aggregated data

