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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore(statementbuilder): log key adjustment actions at debug level (#12337)
Tushar Vatse9a931788c95
diff --git a/pkg/statementbuilder/auditstatementbuilder/statement_builder.go b/pkg/statementbuilder/auditstatementbuilder/statement_builder.goindex 9eaaf5bfc1..5da0394c8d 100644--- a/pkg/statementbuilder/auditstatementbuilder/statement_builder.go+++ b/pkg/statementbuilder/auditstatementbuilder/statement_builder.go@@ -205,7 +205,7 @@ func (b *auditQueryStatementBuilder) adjustKeys(ctx context.Context, keys map[st}for _, action := range actions {- b.logger.InfoContext(ctx, "key adjustment action", slog.String("action", action))+ b.logger.DebugContext(ctx, "key adjustment action", slog.String("action", action))}return querydiff --git a/pkg/statementbuilder/logsstatementbuilder/statement_builder.go b/pkg/statementbuilder/logsstatementbuilder/statement_builder.goindex 3044236da3..e98d7e3b6a 100644--- a/pkg/statementbuilder/logsstatementbuilder/statement_builder.go+++ b/pkg/statementbuilder/logsstatementbuilder/statement_builder.go@@ -274,8 +274,7 @@ func (b *logQueryStatementBuilder) adjustKeys(ctx context.Context, keys map[stri}for _, action := range actions {- // TODO: change to debug level once we are confident about the behavior- b.logger.InfoContext(ctx, "key adjustment action", slog.String("action", action))+ b.logger.DebugContext(ctx, "key adjustment action", slog.String("action", action))}return querydiff --git a/pkg/statementbuilder/tracesstatementbuilder/statement_builder.go b/pkg/statementbuilder/tracesstatementbuilder/statement_builder.goindex 4f86b8a75e..8e2edf1447 100644--- a/pkg/statementbuilder/tracesstatementbuilder/statement_builder.go+++ b/pkg/statementbuilder/tracesstatementbuilder/statement_builder.go@@ -127,8 +127,7 @@ func (b *traceQueryStatementBuilder) Build(}for _, action := range adjustTraceKeys(keys, &query, requestType) {- // TODO: change to debug level once we are confident about the behavior- b.logger.InfoContext(ctx, "key adjustment action", slog.String("action", action))+ b.logger.DebugContext(ctx, "key adjustment action", slog.String("action", action))}// Create SQL builderq := sqlbuilder.NewSelectBuilder()diff --git a/pkg/statementbuilder/tracesstatementbuilder/trace_operator_cte_builder.go b/pkg/statementbuilder/tracesstatementbuilder/trace_operator_cte_builder.goindex fda43a63c2..9c249e6561 100644--- a/pkg/statementbuilder/tracesstatementbuilder/trace_operator_cte_builder.go+++ b/pkg/statementbuilder/tracesstatementbuilder/trace_operator_cte_builder.go@@ -223,8 +223,7 @@ func (b *traceOperatorCTEBuilder) buildQueryCTE(ctx context.Context, queryName s// The CTE only selects spans matching the filter. Aggregations, group by// and order by run later in buildFinalQuery, so RequestTypeRaw is fine here.for _, action := range adjustTraceKeys(keys, query, qbtypes.RequestTypeRaw) {- // TODO: change to debug level once we are confident about the behavior- b.stmtBuilder.logger.InfoContext(ctx, "key adjustment action", slog.String("action", action))+ b.stmtBuilder.logger.DebugContext(ctx, "key adjustment action", slog.String("action", action))}// Build resource filter CTE for this specific query@@ -576,7 +575,7 @@ func (b *traceOperatorCTEBuilder) adjustOperatorKeys(ctx context.Context, keys mb.operator.Order = tmp.Orderfor _, action := range actions {- b.stmtBuilder.logger.InfoContext(ctx, "key adjustment action", slog.String("action", action))+ b.stmtBuilder.logger.DebugContext(ctx, "key adjustment action", slog.String("action", action))}}