Instrumentation: Improve instrumentation of server lock service (#55516)

Improve log and trace instrumentation of the server lock service.

Closes #55455
This commit is contained in:
Marcus Efraimsson
2022-09-21 15:17:26 -04:00
committed by GitHub
parent 2d38664fe6
commit 08d352a0ad
2 changed files with 64 additions and 9 deletions
+2
View File
@@ -9,6 +9,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/infra/tracing"
"github.com/grafana/grafana/pkg/services/sqlstore"
)
@@ -19,6 +20,7 @@ func createTestableServerLock(t *testing.T) *ServerLockService {
return &ServerLockService{
SQLStore: store,
tracer: tracing.InitializeTracerForTest(),
log: log.New("test-logger"),
}
}