WFP trace logs

Query Workers trace events for Workers for Platforms user workers (e.g. script todo-<workspace>) via R2 SQL on your Logpush → Pipelines → Iceberg table. Presets use the same field names as the workers-trace dataset (ScriptName, Outcome, …). The admin API runs SELECT against the catalog; your R2 SQL token never reaches the browser. Use Bronze (raw R2 objects) only when the table is not ready yet.

Connection

Table context

Used for presets. Filled from /api/r2sql/config when R2_SQL_DEFAULT_NAMESPACE / R2_SQL_DEFAULT_TABLE are set (pipeline table names often include a suffix).

WFP user worker

Typical user script name: todo-workspace (product prefix + - + workspace slug). Exact match on ScriptName.

Presets

SQL

Bronze — raw Logpush objects (R2 binding)

List keys or line-search NDJSON in the trace-events bucket. Not Iceberg R2 SQL. Use for gaps before the pipeline is healthy.