Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: remove goroutine (#5483)

ecmadaoc994cc977c55
diff --git a/backend/runner/metricreport/reporter.go b/backend/runner/metricreport/reporter.go
index 88d3346316..1607a8ead1 100644
--- a/backend/runner/metricreport/reporter.go
+++ b/backend/runner/metricreport/reporter.go
@@ -204,12 +204,10 @@ func (m *Reporter) identify(ctx context.Context) (string, error) {
// Report will report a metric.
func (m *Reporter) Report(ctx context.Context, metric *metric.Metric) {
- go func() {
- workspaceID, err := m.getWorkspaceID(ctx)
- if err != nil {
- log.Error("failed to find the workspace id", zap.Error(err))
- return
- }
- m.reportMetric(workspaceID, metric)
- }()
+ workspaceID, err := m.getWorkspaceID(ctx)
+ if err != nil {
+ log.Error("failed to find the workspace id", zap.Error(err))
+ return
+ }
+ m.reportMetric(workspaceID, metric)
}