mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-22 04:57:29 -06:00
[feature] Add metrics for instance user count, statuses count and federating instances count (#2592)
Co-authored-by: Tsuribori <none@example.org>
This commit is contained in:
parent
46c06b1b8f
commit
142b7ec54f
4 changed files with 74 additions and 11 deletions
|
|
@ -24,10 +24,11 @@ import (
|
|||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
func Initialize() error {
|
||||
func Initialize(db db.DB) error {
|
||||
if config.GetMetricsEnabled() {
|
||||
return errors.New("metrics was disabled at build time")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue