The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
fix: bad loggers are bad
ddux9c9ce0d7597e
diff --git a/backend/app/controllers/otelcontrollers/otel.controller.go b/backend/app/controllers/otelcontrollers/otel.controller.goindex 50e41d40..352819fc 100644--- a/backend/app/controllers/otelcontrollers/otel.controller.go+++ b/backend/app/controllers/otelcontrollers/otel.controller.go@@ -3,7 +3,6 @@ package otelcontrollersimport ("context""fmt"- "log""net/http""github.com/gin-gonic/gin"@@ -14,7 +13,6 @@ import ("github.com/tracewayapp/traceway/backend/app/services""github.com/tracewayapp/traceway/backend/app/storage"traceway "go.tracewayapp.com"- "google.golang.org/protobuf/encoding/protojson")type otelController struct{}@@ -22,13 +20,11 @@ type otelController struct{}var OtelController = otelController{}func (o otelController) ExportTraces(c *gin.Context) {- fmt.Println("A00")projectId, err := middleware.GetProjectId(c)if err != nil {c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("UseClientAuth middleware must be applied: %w", err))return}- fmt.Println("A0")if project, exists := c.Get(middleware.ProjectContextKey); exists {if p, ok := project.(*models.Project); ok && p.OrganizationId != nil {if !hooks.CanReport(*p.OrganizationId) {@@ -37,7 +33,6 @@ func (o otelController) ExportTraces(c *gin.Context) {}}}- fmt.Println("A1")req, err := decodeTraceRequest(c)if err != nil {@@ -45,11 +40,6 @@ func (o otelController) ExportTraces(c *gin.Context) {return}- fmt.Println("WTF??")- if jsonBytes, err := protojson.Marshal(req); err == nil {- log.Printf("[OTEL TRACES] Payload: %s", string(jsonBytes))- }-endpoints, tasks, spans, exceptions, aiTraces, aiConversations := convertTraces(projectId, req)if len(endpoints) > 0 {