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: no logs in list view issue - added logs datasource for formatting and column options in the useoptionsmenu consumption (#8421)
Sahil Khan9ee5d5d59948
diff --git a/frontend/src/components/LogDetail/index.tsx b/frontend/src/components/LogDetail/index.tsxindex f6b5da802c..dcc3c0b153 100644--- a/frontend/src/components/LogDetail/index.tsx+++ b/frontend/src/components/LogDetail/index.tsx@@ -71,7 +71,7 @@ function LogDetail({const [contextQuery, setContextQuery] = useState<Query | undefined>();const [filters, setFilters] = useState<TagFilter | null>(null);const [isEdit, setIsEdit] = useState<boolean>(false);- const { initialDataSource, stagedQuery } = useQueryBuilder();+ const { stagedQuery } = useQueryBuilder();const listQuery = useMemo(() => {if (!stagedQuery || stagedQuery.builder.queryData.length < 1) return null;@@ -81,7 +81,7 @@ function LogDetail({const { options } = useOptionsMenu({storageKey: LOCALSTORAGE.LOGS_LIST_OPTIONS,- dataSource: initialDataSource || DataSource.LOGS,+ dataSource: DataSource.LOGS,aggregateOperator: listQuery?.aggregateOperator || StringOperators.NOOP,});diff --git a/frontend/src/container/LogDetailedView/ContextView/ContextLogRenderer.tsx b/frontend/src/container/LogDetailedView/ContextView/ContextLogRenderer.tsxindex 5b4ad983d0..4522ff446c 100644--- a/frontend/src/container/LogDetailedView/ContextView/ContextLogRenderer.tsx+++ b/frontend/src/container/LogDetailedView/ContextView/ContextLogRenderer.tsx@@ -32,7 +32,7 @@ function ContextLogRenderer({const [afterLogPage, setAfterLogPage] = useState<number>(1);const [logs, setLogs] = useState<ILog[]>([log]);- const { initialDataSource, stagedQuery } = useQueryBuilder();+ const { stagedQuery } = useQueryBuilder();const listQuery = useMemo(() => {if (!stagedQuery || stagedQuery.builder.queryData.length < 1) return null;@@ -42,7 +42,7 @@ function ContextLogRenderer({const { options } = useOptionsMenu({storageKey: LOCALSTORAGE.LOGS_LIST_OPTIONS,- dataSource: initialDataSource || DataSource.METRICS,+ dataSource: DataSource.LOGS,aggregateOperator: listQuery?.aggregateOperator || StringOperators.NOOP,});diff --git a/frontend/src/container/LogsExplorerList/index.tsx b/frontend/src/container/LogsExplorerList/index.tsxindex 74c9366f82..3c485d7377 100644--- a/frontend/src/container/LogsExplorerList/index.tsx+++ b/frontend/src/container/LogsExplorerList/index.tsx@@ -48,7 +48,6 @@ function LogsExplorerList({isFilterApplied,}: LogsExplorerListProps): JSX.Element {const ref = useRef<VirtuosoHandle>(null);- const { initialDataSource } = useQueryBuilder();const { activeLogId } = useCopyLogLink();@@ -62,7 +61,7 @@ function LogsExplorerList({const { options } = useOptionsMenu({storageKey: LOCALSTORAGE.LOGS_LIST_OPTIONS,- dataSource: initialDataSource || DataSource.METRICS,+ dataSource: DataSource.LOGS,aggregateOperator:currentStagedQueryData?.aggregateOperator || StringOperators.NOOP,});