Chore: Add more metrics to annotation service to see its usage (#112651)

This commit is contained in:
Serge Zaitsev
2025-10-23 09:48:07 +02:00
committed by GitHub
parent 2e1704b56f
commit f3eabbf588
5 changed files with 90 additions and 12 deletions
@@ -6,6 +6,7 @@ import (
"strings"
"testing"
"github.com/prometheus/client_golang/prometheus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -39,7 +40,7 @@ func TestIntegrationAnnotations(t *testing.T) {
cfg := setting.NewCfg()
cfg.AnnotationMaximumTagsLength = 60
store := NewXormStore(cfg, log.New("annotation.test"), sql, tagimpl.ProvideService(sql))
store := NewXormStore(cfg, log.New("annotation.test"), sql, tagimpl.ProvideService(sql), prometheus.NewRegistry())
testUser := &user.SignedInUser{
OrgID: 1,