
https://<worker-host-name>/cdn-cgi/trace i.e https://cloudflare.com/cdn-cgi/trace and look at colo= for the airport code of where the worker is runninghttps://<worker-host-name>/cdn-cgi/tracehttps://cloudflare.com/cdn-cgi/traceimport { Hono } from "hono";
const app = new Hono<{
Bindings: {
DB: D1Database;
};
}>();
app.get("/", async (c) => {
const result = c.env.DB.prepare(`
select * from users where id = 420;
`);
const t = performance.now();
await result.first();
return c.text(`Query took ${performance.now() - t}ms`);
});
export default app;