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: updated fallback color (#10525)
Ishan25c513ec2f75
diff --git a/frontend/src/container/LogsExplorerChart/__tests__/frequencyGraphColor.test.ts b/frontend/src/container/LogsExplorerChart/__tests__/frequencyGraphColor.test.tsindex e967e8b675..34a96e4565 100644--- a/frontend/src/container/LogsExplorerChart/__tests__/frequencyGraphColor.test.ts+++ b/frontend/src/container/LogsExplorerChart/__tests__/frequencyGraphColor.test.ts@@ -4,8 +4,8 @@ import { getColorsForSeverityLabels, isRedLike } from '../utils';describe('getColorsForSeverityLabels', () => {it('should return slate for blank labels', () => {- expect(getColorsForSeverityLabels('', 0)).toBe(Color.BG_SLATE_300);- expect(getColorsForSeverityLabels(' ', 0)).toBe(Color.BG_SLATE_300);+ expect(getColorsForSeverityLabels('', 0)).toBe(Color.BG_VANILLA_400);+ expect(getColorsForSeverityLabels(' ', 0)).toBe(Color.BG_VANILLA_400);});it('should return correct colors for known severity variants', () => {diff --git a/frontend/src/container/LogsExplorerChart/utils.ts b/frontend/src/container/LogsExplorerChart/utils.tsindex 22f1e264b9..c20f5435c5 100644--- a/frontend/src/container/LogsExplorerChart/utils.ts+++ b/frontend/src/container/LogsExplorerChart/utils.ts@@ -79,7 +79,7 @@ export function getColorsForSeverityLabels(const trimmed = label.trim();if (!trimmed) {- return Color.BG_SLATE_300;+ return Color.BG_VANILLA_400; // Default color for empty labels}const variantColor = SEVERITY_VARIANT_COLORS[trimmed];@@ -119,6 +119,6 @@ export function getColorsForSeverityLabels(return (SAFE_FALLBACK_COLORS[index % SAFE_FALLBACK_COLORS.length] ||- Color.BG_SLATE_400+ Color.BG_VANILLA_400);}