MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / metrics

Function metrics

kms/src/main.rs:81–83  ·  view source on GitHub ↗
(state: &State<KmsState>)

Source from the content-addressed store, hash-verified

79
80#[rocket::get("/metrics")]
81fn metrics(state: &State<KmsState>) -> RawText<String> {
82 RawText(state.metrics().render_prometheus())
83}
84
85// Count only RPCs whose primary job is to verify caller/app attestation.
86// Recording in a response fairing also catches failures that happen before

Callers

nothing calls this directly

Calls 2

render_prometheusMethod · 0.80
metricsMethod · 0.80

Tested by

no test coverage detected