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
revert: prevent stage and run query to apply legends (#4816)
Vikrant Guptab480ff1e487b
diff --git a/frontend/src/lib/uPlotLib/utils/getSeriesData.ts b/frontend/src/lib/uPlotLib/utils/getSeriesData.tsindex 574b8dc1de..92dbbab8bb 100644--- a/frontend/src/lib/uPlotLib/utils/getSeriesData.ts+++ b/frontend/src/lib/uPlotLib/utils/getSeriesData.ts@@ -32,7 +32,6 @@ const getSeries = ({widgetMetaData,graphsVisibilityStates,panelType,- currentQuery,}: GetSeriesProps): uPlot.Options['series'] => {const configurations: uPlot.Series[] = [{ label: 'Timestamp', stroke: 'purple' },@@ -42,15 +41,13 @@ const getSeries = ({const newGraphVisibilityStates = graphsVisibilityStates?.slice(1);for (let i = 0; i < seriesList?.length; i += 1) {- const { metric = {}, queryName = '', legend: lgd } = widgetMetaData[i] || {};+ const { metric = {}, queryName = '', legend = '' } = widgetMetaData[i] || {};- const newLegend =- currentQuery?.builder.queryData.find((item) => item.queryName === queryName)- ?.legend || '';-- const legend = newLegend || lgd || '';-- const label = getLabelName(metric, queryName || '', legend);+ const label = getLabelName(+ metric,+ queryName || '', // query+ legend || '',+ );const color = generateColor(label, themeColors.chartcolors);