fix: Aufrufe der Oberfläche nicht als API-Anfragen zählen, Diagnose-Ordner zufällig und exklusiv anlegen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -134,7 +134,10 @@ pub async fn observe(
|
||||
"Anfrage beantwortet"
|
||||
);
|
||||
}
|
||||
if !info.deferred {
|
||||
// Die Oberfläche lädt sich alle paar Sekunden selbst neu; ihre Aufrufe
|
||||
// gehören nicht in die Zählung der API-Anfragen.
|
||||
let counted = !path.starts_with("/ui");
|
||||
if !info.deferred && counted {
|
||||
state.runtime.metrics.record_request(
|
||||
info.metric_model.as_deref().unwrap_or("-"),
|
||||
status,
|
||||
|
||||
Reference in New Issue
Block a user