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
fix: do not add select columns when the datasource is logs (#5515)
Vikrant Guptab08e859426e7
diff --git a/frontend/src/container/GridCardLayout/GridCard/index.tsx b/frontend/src/container/GridCardLayout/GridCard/index.tsxindex 0f30a189cf..8e34e32879 100644--- a/frontend/src/container/GridCardLayout/GridCard/index.tsx+++ b/frontend/src/container/GridCardLayout/GridCard/index.tsx@@ -125,10 +125,9 @@ function GridCardGraph({offset: 0,limit: updatedQuery.builder.queryData[0].limit || 0,},+ // we do not need select columns in case of logsselectColumns:- initialDataSource === DataSource.LOGS- ? widget.selectedLogFields- : widget.selectedTracesFields,+ initialDataSource === DataSource.TRACES && widget.selectedTracesFields,},fillGaps: widget.fillSpans,};diff --git a/frontend/src/container/NewWidget/LeftContainer/ExplorerColumnsRenderer.tsx b/frontend/src/container/NewWidget/LeftContainer/ExplorerColumnsRenderer.tsxindex a9a8d9ceb2..0ead9a3765 100644--- a/frontend/src/container/NewWidget/LeftContainer/ExplorerColumnsRenderer.tsx+++ b/frontend/src/container/NewWidget/LeftContainer/ExplorerColumnsRenderer.tsx@@ -309,6 +309,7 @@ function ExplorerColumnsRenderer({><ButtonclassName="action-btn"+ data-testid="add-columns-button"icon={<PlusCirclesize={16}diff --git a/frontend/src/container/NewWidget/index.tsx b/frontend/src/container/NewWidget/index.tsxindex e2324764fd..ce7bd59cb8 100644--- a/frontend/src/container/NewWidget/index.tsx+++ b/frontend/src/container/NewWidget/index.tsx@@ -563,11 +563,11 @@ function NewWidget({ selectedGraph }: NewWidgetProps): JSX.Element {if (selectedGraph === PANEL_TYPES.LIST) {const initialDataSource = currentQuery.builder.queryData[0].dataSource;if (initialDataSource === DataSource.LOGS) {+ // we do not need selected log columns in the request data as the entire response contains all the necessary datasetRequestData((prev) => ({...prev,tableParams: {...prev.tableParams,- selectColumns: selectedLogFields,},}));} else if (initialDataSource === DataSource.TRACES) {