mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
prom-client: submissionCounter: fix
This commit is contained in:
1 file changed
+1
-1
@@ -40,7 +40,7 @@ export function createRegistry(ctx: Context) {
|
||||
const submissionCounter = createMetric(Counter, 'hydro_submission', 'submissioncount', {
|
||||
labelNames: ['lang', 'domainId'],
|
||||
});
|
||||
ctx.on('handler/after/ProblemSubmit', (that) => {
|
||||
ctx.on('handler/after/ProblemSubmit#post', (that) => {
|
||||
submissionCounter.inc({ lang: that.args.lang, domainId: that.args.domainId });
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user