Skip to content

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.

1.2 KB
Raw Blame
import { PANEL_TYPES } from 'constants/queryBuilder';
import BarPanel from 'container/WidgetCard/Panels/BarPanel/BarPanel';
import HistogramPanel from 'container/WidgetCard/Panels/HistogramPanel/HistogramPanel';

import TimeSeriesPanel from 'container/WidgetCard/Panels/TimeSeriesPanel/TimeSeriesPanel';
import ListPanelWrapper from 'container/WidgetCard/Panels/ListPanelWrapper';
import PiePanelWrapper from 'container/WidgetCard/Panels/PiePanelWrapper';
import TablePanelWrapper from 'container/WidgetCard/Panels/TablePanelWrapper';
import ValuePanelWrapper from 'container/WidgetCard/Panels/ValuePanelWrapper';

export const PanelTypeVsPanelWrapper = {
	[PANEL_TYPES.TIME_SERIES]: TimeSeriesPanel,
	[PANEL_TYPES.TABLE]: TablePanelWrapper,
	[PANEL_TYPES.LIST]: ListPanelWrapper,
	[PANEL_TYPES.VALUE]: ValuePanelWrapper,
	[PANEL_TYPES.TRACE]: null,
	// Dashboards v2 renders this kind; the V1 wrapper map is never asked for it.
	[PANEL_TYPES.TEXT]: null,
	[PANEL_TYPES.SCATTER]: null,
	[PANEL_TYPES.EMPTY_WIDGET]: null,
	[PANEL_TYPES.PIE]: PiePanelWrapper,
	[PANEL_TYPES.BAR]: BarPanel,
	[PANEL_TYPES.AREA]: TimeSeriesPanel,
	[PANEL_TYPES.HISTOGRAM]: HistogramPanel,
	// V2-only kind; it renders through the V2 panel registry.
	[PANEL_TYPES.HEATMAP]: null,
};