{"agent":"claude","input":"Add Prometheus metrics to the basics/todo service in this Actix Web workspace and open a pull request. Read the workspace Cargo.toml, basics/todo/Cargo.toml, basics/todo/src/main.rs, basics/todo/src/api.rs, basics/todo/.env, basics/todo/README.md, the tracing/mainmatter-workshop crate's Cargo.toml, src/prometheus.rs, src/middleware.rs and src/routes.rs, the justfile and .github/workflows/ci.yml first. Add metrics and metrics-exporter-prometheus at the versions the workshop crate uses. Write basics/todo/src/metrics.rs with the metric names as constants, an init() that describes http_request_duration in seconds with the workshop's buckets and installs the recorder, and a from_fn middleware record_request that records a duration histogram, an http_requests_total counter and an http_requests_in_flight gauge labelled with method, the matched route pattern and status. In main.rs put the PrometheusHandle in app_data as ThinData, add GET /metrics returning handle.render() before the static files service, and wrap record_request as the outermost middleware. Add a tests module using build_recorder and with_local_recorder over a stub route under actix_web::test::init_service, asserting the counter series after two calls and a 404 series after a miss. Create the SQLite database with sqlx as CI does, run cargo test -p todo, cargo clippy -p todo --all-targets, cargo +nightly fmt --check and taplo format --check, then run the server, make a few requests and paste the /metrics output in the pull request. Do not change the handlers, templates or session settings.","resources":[{"url":"https://github.com/your-org/your-app"}]}