MCPcopy Create free account
hub / github.com/AI45Lab/Code / maybe_record_metrics

Function maybe_record_metrics

core/src/llm/http.rs:70–74  ·  view source on GitHub ↗
(record: HttpMetricsRecord)

Source from the content-addressed store, hash-verified

68}
69
70fn maybe_record_metrics(record: HttpMetricsRecord) {
71 if let Some(callback) = HTTP_METRICS_CALLBACK.read().unwrap().as_ref() {
72 callback(record);
73 }
74}
75
76/// Abstraction over HTTP POST requests for LLM API calls.
77///

Callers 2

postMethod · 0.85
post_streamingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected