mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-14 03:37:55 -04:00
507b087dd8
# Description of Changes This commit adds several new metrics to `DB_METRICS` for tracking procedures' HTTP requests: - `procedure_http_request_size_bytes`. - `procedure_http_response_size_bytes`. - `procedure_num_http_requests`. - `procedure_num_successful_http_requests`. - `procedure_num_failed_http_requests`. - `procedure_num_timeout_http_requests`. - `procedure_num_in_progress_http_requests`. See help strings in `crates/datastore/src/db_metrics/mod.rs` for details on what each of these tracks. Closes #3712 . # API and ABI breaking changes N/a - I don't think we count metrics as a stable API. # Expected complexity level and risk 2, I guess? If we intend to use these for billing, some of the choices I've made about tracking may impact our business. # Testing None; I don't know how to test Prometheus metrics. Co-authored-by: Noa <coolreader18@gmail.com>
⚠️ Unstable Crate ⚠️
The interface of this crate is not stable and may change without notice.