also looking at this
Add BunPress guide and pre-E2E quality gates
#4
246 files
+1744
-64381
| @@ -141,6 +141,8 @@ export interface ArchiveFilters { | ||
| 141 | 141 | channel?: string |
| 142 | 142 | environment?: string |
| 143 | 143 | release?: string |
| 144 | traceId?: string | |
| 145 | requestId?: string | |
| 144 | 146 | /** Free text matched against the message. */ |
| 145 | 147 | q?: string |
| 146 | 148 | fromDay?: string |
| @@ -187,6 +189,12 @@ function filterClauses(f: ArchiveFilters): string[] { | ||
| 187 | 189 | if (f.release) |
| 188 | 190 | where.push(`"release" = ${sqlQuote(String(f.release).slice(0, 255))}`) |
| 189 | 191 | |
| 192 | if (f.traceId) | |
| 193 | where.push(`"trace_id" = ${sqlQuote(String(f.traceId).slice(0, 64))}`) | |
| 194 | ||
| 195 | if (f.requestId) | |
| 196 | where.push(`"request_id" = ${sqlQuote(String(f.requestId).slice(0, 64))}`) | |
| 197 | ||
| 190 | 198 | if (f.q) { |
| 191 | 199 | // `%` and `_` are left literal rather than escaped: a user typing them into |
| 192 | 200 | // a log search means them as wildcards more often than not, and this reads |