chore: remove metrics plugin (#1276)

* chore: remove metrics plugin

* chore: update
This commit is contained in:
boojack
2023-03-05 21:42:32 +08:00
committed by GitHub
parent 6201dcf1aa
commit 4335897367
10 changed files with 3 additions and 164 deletions

View File

@@ -11,7 +11,6 @@ import (
"github.com/pkg/errors"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
metric "github.com/usememos/memos/plugin/metrics"
"github.com/labstack/echo/v4"
)
@@ -504,8 +503,5 @@ func (s *Server) createMemoCreateActivity(c echo.Context, memo *api.Memo) error
if err != nil || activity == nil {
return errors.Wrap(err, "failed to create activity")
}
s.Collector.Collect(ctx, &metric.Metric{
Name: string(activity.Type),
})
return err
}