Instrumentation: Start tracing database requests (#34572)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2021-05-27 13:55:33 +02:00
committed by GitHub
parent 29d34974e7
commit a10fa5cad3
10 changed files with 71 additions and 31 deletions
@@ -1,6 +1,7 @@
package datamigrations
import (
"context"
"testing"
"time"
@@ -15,7 +16,7 @@ import (
func TestPasswordMigrationCommand(t *testing.T) {
// setup datasources with password, basic_auth and none
sqlstore := sqlstore.InitTestDB(t)
session := sqlstore.NewSession()
session := sqlstore.NewSession(context.Background())
defer session.Close()
datasources := []*models.DataSource{