Workers Observability Adds Structured Query Language for Logs and Traces
Key Points
- Structured query language for Workers logs and traces
- Integrated Query Builder with visual and text interfaces
- Support for field queries, functions, and boolean logic
Summary
Cloudflare Workers Observability now supports a structured query language that enables developers to write precise queries directly in the search bar to filter logs and traces. The feature combines free-text search capabilities with field-level filtering and integrates with a visual Query Builder.
Key Points
- Dual Search Interface: Search bar functions as both free-text search and structured query interface with autocomplete suggestions
- Query Builder Integration: Hand-written queries sync with visual Query Builder sidebar for seamless workflow between manual and visual query construction
- Comprehensive Query Support:
- Free text search with keyword matching and exact phrase search using quotes
- Field-level queries with comparison operators (
=,!=,>,>=,<,<=,:) - Built-in functions:
contains(),startsWith(),regex(),exists() - Boolean logic operators:
AND,OR,NOT
- Developer Experience: Built-in help documentation with full syntax reference and keyboard shortcuts accessible via help icon