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.

607 B
Raw Blame
import { Button } from '@signozhq/ui/button';
import { Compass } from '@signozhq/icons';

interface OpenInLogsExplorerProps {
	onClick: () => void;
}

// Opens the full Logs Explorer (new tab) filtered to this span's trace.
// Placement/alignment is the caller's responsibility.
function OpenInLogsExplorer({ onClick }: OpenInLogsExplorerProps): JSX.Element {
	return (
		<Button
			variant="solid"
			color="secondary"
			size="md"
			onClick={onClick}
			prefix={<Compass size={16} />}
			testId="open-in-explorer-button"
		>
			Open in Logs Explorer
		</Button>
	);
}

export default OpenInLogsExplorer;