Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: nil pointer for principal (#4069)
ecmadao99d3465a4357
diff --git a/server/runner/metricreport/reporter.go b/server/runner/metricreport/reporter.goindex a3d39fd88b..2e0c9a6b16 100644--- a/server/runner/metricreport/reporter.go+++ b/server/runner/metricreport/reporter.go@@ -128,14 +128,16 @@ func (m *Reporter) Identify(ctx context.Context) {log.Debug("unable to get the first principal user", zap.Int("id", api.PrincipalIDForFirstUser), zap.Error(err))}email := ""+ name := ""if principal != nil {email = principal.Email+ name = principal.Name}if err := m.reporter.Identify(&metric.Identifier{ID: m.workspaceID,Email: email,- Name: principal.Name,+ Name: name,Labels: map[string]string{identifyTraitForPlan: plan,identifyTraitForVersion: m.version,