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: added fix for key suggestions (#8727)
Abhi kumarb5016b061b28
diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.tsx b/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.tsxindex 48150cc9f7..4e45d231bf 100644--- a/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.tsx+++ b/frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.tsx@@ -153,6 +153,7 @@ function QuerySearch({// Reference to the editor view for programmatic autocompletionconst editorRef = useRef<EditorView | null>(null);const lastKeyRef = useRef<string>('');+ const lastFetchedKeyRef = useRef<string>('');const lastValueRef = useRef<string>('');const isMountedRef = useRef<boolean>(true);@@ -210,6 +211,9 @@ function QuerySearch({setKeySuggestions([]);return;}++ lastFetchedKeyRef.current = searchText || '';+const response = await getKeySuggestions({signal: dataSource,searchText: searchText || '',@@ -805,7 +809,7 @@ function QuerySearch({option.label.toLowerCase().includes(searchText),);- if (options.length === 0 && lastKeyRef.current !== searchText) {+ if (options.length === 0 && lastFetchedKeyRef.current !== searchText) {debouncedFetchKeySuggestions(searchText);}