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(infra-monitoring): use proper axios instance for retrying the 401 req (#6841)
Vikrant Guptae9618d64bcdb
diff --git a/frontend/src/api/infraMonitoring/getHostLists.ts b/frontend/src/api/infraMonitoring/getHostLists.tsindex 870f87f9d6..9acede0033 100644--- a/frontend/src/api/infraMonitoring/getHostLists.ts+++ b/frontend/src/api/infraMonitoring/getHostLists.ts@@ -1,4 +1,4 @@-import { ApiBaseInstance } from 'api';+import axios from 'api';import { ErrorResponseHandler } from 'api/ErrorResponseHandler';import { AxiosError } from 'axios';import { ErrorResponse, SuccessResponse } from 'types/api';@@ -59,7 +59,7 @@ export const getHostLists = async (headers?: Record<string, string>,): Promise<SuccessResponse<HostListResponse> | ErrorResponse> => {try {- const response = await ApiBaseInstance.post('/hosts/list', props, {+ const response = await axios.post('/hosts/list', props, {signal,headers,});