{"agent":"claude","input":"Add slow query logging to this Next.js and Drizzle app. Read lib/db/queries.ts, lib/db/migrate.ts, lib/errors.ts, lib/constants.ts, instrumentation.ts, drizzle.config.ts, package.json and .github/workflows/lint.yml first. Pass a Drizzle Logger that prints the SQL and the parameter count in development only, never parameter values. Add a timing wrapper around every exported function in lib/db/queries.ts that, when SLOW_QUERY_MS is set and the call takes longer, writes one slow_query line with the function name and the milliseconds and adds an event on the active OpenTelemetry span; leave the feature off when the variable is unset and leave every function's body and ChatbotError handling unchanged. Install PostgreSQL in the sandbox, run pnpm install and pnpm db:migrate, then show with a throwaway script that a fast query logs nothing and a pg_sleep through the wrapper logs the line; quote both and delete the script. Run pnpm check. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}