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.

528 B
Raw Blame
import type {
	DashboardtypesHeaderOptionsDTO,
	DashboardtypesPanelSpecDTO,
} from 'api/generated/services/sigNoz.schemas';

/**
 * Whether the panel opted out of its header strip (`headerOptions.hide`) —
 * one localized cast over the plugin-spec union, as `useTextBackground`.
 */
export function isPanelHeaderHidden(spec: DashboardtypesPanelSpecDTO): boolean {
	const headerOptions = (
		spec.plugin.spec as {
			headerOptions?: DashboardtypesHeaderOptionsDTO;
		}
	).headerOptions;
	return headerOptions?.hide === true;
}