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.

694 B
Raw Blame
import { useTranslation } from 'react-i18next';

import { FieldTitle } from '../styles';
import { OptionsMenuConfig } from '../types';
import { MaxLinesFieldWrapper, MaxLinesInput } from './styles';

function MaxLinesField({ config }: MaxLinesFieldProps): JSX.Element | null {
	const { t } = useTranslation(['trace']);

	if (!config) {
		return null;
	}

	return (
		<MaxLinesFieldWrapper>
			<FieldTitle>{t('options_menu.maxLines')}</FieldTitle>
			<MaxLinesInput
				controls
				size="small"
				value={config.value}
				onChange={config.onChange}
			/>
		</MaxLinesFieldWrapper>
	);
}

interface MaxLinesFieldProps {
	config: OptionsMenuConfig['maxLines'];
}

export default MaxLinesField;