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: prevent queryKey overide by options (#9344)
Aditya Singh457b6970b1a0
diff --git a/frontend/src/hooks/queryBuilder/useGetAggregateKeys.ts b/frontend/src/hooks/queryBuilder/useGetAggregateKeys.tsindex 6041a2c2c0..537fac37f9 100644--- a/frontend/src/hooks/queryBuilder/useGetAggregateKeys.ts+++ b/frontend/src/hooks/queryBuilder/useGetAggregateKeys.ts@@ -42,8 +42,8 @@ export const useGetAggregateKeys: UseGetAttributeKeys = (}, [options?.queryKey, requestData, isInfraMonitoring, infraMonitoringEntity]);return useQuery<SuccessResponse<IQueryAutocompleteResponse> | ErrorResponse>({- queryKey,queryFn: () => getAggregateKeys(requestData),...options,+ queryKey,});};diff --git a/frontend/src/hooks/querySuggestions/useGetQueryKeySuggestions.ts b/frontend/src/hooks/querySuggestions/useGetQueryKeySuggestions.tsindex 7d43b08227..643c2c58c1 100644--- a/frontend/src/hooks/querySuggestions/useGetQueryKeySuggestions.ts+++ b/frontend/src/hooks/querySuggestions/useGetQueryKeySuggestions.ts@@ -55,7 +55,6 @@ export const useGetQueryKeySuggestions: UseGetQueryKeySuggestions = (signalSource,]);return useQuery<AxiosResponse<QueryKeySuggestionsResponseProps>, AxiosError>({- queryKey,queryFn: () =>getKeySuggestions({signal,@@ -66,5 +65,6 @@ export const useGetQueryKeySuggestions: UseGetQueryKeySuggestions = (signalSource,}),...options,+ queryKey,});};