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.

727 B
Raw Blame
import { ExternalLink } from '@signozhq/icons';

import styles from './TooltipContent.module.scss';

// Custom tooltip content component
export default function TooltipContent({
	label,
	description,
	docLink,
}: {
	label: string;
	description?: string;
	docLink?: string;
}): JSX.Element {
	return (
		<div className={styles.content}>
			<strong className={styles.label}>{label}</strong>
			{description && <span className={styles.description}>{description}</span>}
			{docLink && (
				<a
					href={docLink}
					target="_blank"
					rel="noopener noreferrer"
					onClick={(e): void => e.stopPropagation()}
					className={styles.docLink}
				>
					Learn more
					<ExternalLink size={12} />
				</a>
			)}
		</div>
	);
}