Skip to content

Commit 2f893eb

Browse files
balogh.adam@icloud.combalogh.adam@icloud.com
authored andcommitted
metric
1 parent a2f869d commit 2f893eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/fastapi_server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,12 @@ async def evaluate_subnet_response(
451451
subnet_evaluation, quant_query, quant_response
452452
)
453453

454+
statsd.increment("subnet.evaluation.success")
454455
return {"score": score}
455456

456457
except ValidationError as e:
457458
logging.exception("Validation error in subnet evaluation")
459+
statsd.increment("subnet.evaluation.validation_error")
458460
raise HTTPException(status_code=400, detail=str(e))
459461
except Exception:
460462
logging.exception("Error in subnet evaluation")

0 commit comments

Comments
 (0)