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: [GH-3585]: operator suggestion should work on the substring typed in by the user (#4246)
Vikrant Guptace8fdd509b3b
diff --git a/frontend/src/hooks/queryBuilder/useOptions.ts b/frontend/src/hooks/queryBuilder/useOptions.tsindex 82dc2c1e24..2ecdf29e07 100644--- a/frontend/src/hooks/queryBuilder/useOptions.ts+++ b/frontend/src/hooks/queryBuilder/useOptions.ts@@ -80,9 +80,15 @@ export const useOptions = (const getKeyOperatorOptions = useCallback((key: string) => {- const operatorsOptions = operators?.map((operator) => ({- value: `${key} ${operator} `,- label: `${key} ${operator} `,+ const keyOperator = key.split(' ');+ const partialOperator = keyOperator?.[1];+ const partialKey = keyOperator?.[0];+ const filteredOperators = operators?.filter((operator) =>+ operator.startsWith(partialOperator?.toUpperCase()),+ );+ const operatorsOptions = filteredOperators?.map((operator) => ({+ value: `${partialKey} ${operator} `,+ label: `${partialKey} ${operator} `,}));if (whereClauseConfig) {return [