{"agent":"claude","input":"Add Prometheus metrics to the Axum server of this Leptos app. Read Cargo.toml including [package.metadata.leptos], src/main.rs, src/app.rs, src/lib.rs, rust-toolchain.toml, README.md and end2end/tests/example.spec.ts first. Add metrics and metrics-exporter-prometheus as optional dependencies enabled only by the ssr feature. In src/main.rs install the Prometheus recorder before the router is built, keep the handle in state, and add a from_fn middleware that records http_requests_total and an http_request_duration_seconds histogram with method, path and status labels, using MatchedPath and the label fallback for the file handler. Serve /metrics as a text route registered before leptos_routes, set explicit histogram buckets, and extract a build_router function so it can be tested. Add tests/metrics.rs behind cfg(feature = \"ssr\") using tower oneshot to assert the counter and bucket lines after a request to /, and end2end/tests/metrics.spec.ts that fetches /metrics from the running server. Run cargo leptos build --release and cargo leptos end-to-end, and open a pull request with the output and a sample of the /metrics text.","resources":[{"url":"https://github.com/your-org/your-app"}]}