chore: update metrics

This commit is contained in:
Steven
2023-10-17 23:44:16 +08:00
parent e30d0c2dd0
commit a5df36eff2
8 changed files with 72 additions and 4 deletions

View File

@ -14,6 +14,7 @@ import (
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/server/service/metric"
"github.com/usememos/memos/store"
)
@ -387,6 +388,7 @@ func (s *APIV1Service) CreateMemo(c echo.Context) error {
}
}
}
metric.Enqueue("memo create")
return c.JSON(http.StatusOK, memoResponse)
}