(
request: Request,
env: Record<string, unknown>,
ctx: ExecutionContext
)
| 31 | }), |
| 32 | { |
| 33 | async fetch( |
| 34 | request: Request, |
| 35 | env: Record<string, unknown>, |
| 36 | ctx: ExecutionContext |
| 37 | ) { |
| 38 | setTags({ |
| 39 | request_id: crypto.randomUUID(), |
| 40 | user_agent: request.headers.get('user-agent'), |
| 41 | ray_id: request.headers.get('cf-ray'), |
| 42 | |
| 43 | // Type casts needed to keep lsp happy |
| 44 | ip_country: request.cf?.country as Iso3166Alpha2Code | undefined, |
| 45 | colo: request.cf?.colo as string | undefined, |
| 46 | }); |
| 47 | |
| 48 | return handler.fetch(request, env, ctx); |
| 49 | }, |
| 50 | } |
| 51 | ); |
| 52 |
no outgoing calls
no test coverage detected