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:
@@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user