Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore: generate uuid on server side

Srikanth Chekurieb4abe900c43
diff --git a/pkg/query-service/app/dashboards/model.go b/pkg/query-service/app/dashboards/model.go
index 480fadf69d..77b66046c0 100644
--- a/pkg/query-service/app/dashboards/model.go
+++ b/pkg/query-service/app/dashboards/model.go
@@ -7,6 +7,7 @@ import (
"strings"
"time"
+ "github.com/google/uuid"
"github.com/gosimple/slug"
"github.com/jmoiron/sqlx"
"go.signoz.io/query-service/model"
@@ -109,8 +110,7 @@ func CreateDashboard(data *map[string]interface{}) (*Dashboard, *model.ApiError)
dash.CreatedAt = time.Now()
dash.UpdatedAt = time.Now()
dash.UpdateSlug()
- // dash.Uuid = uuid.New().String()
- dash.Uuid = dash.Data["uuid"].(string)
+ dash.Uuid = uuid.New().String()
map_data, err := json.Marshal(dash.Data)
if err != nil {