1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- import {Breadcrumbs} from 'sentry/components/breadcrumbs';
- import * as Layout from 'sentry/components/layouts/thirds';
- import NoProjectMessage from 'sentry/components/noProjectMessage';
- import {DatePageFilter} from 'sentry/components/organizations/datePageFilter';
- import {EnvironmentPageFilter} from 'sentry/components/organizations/environmentPageFilter';
- import PageFilterBar from 'sentry/components/organizations/pageFilterBar';
- import {ProjectPageFilter} from 'sentry/components/organizations/projectPageFilter';
- import {PageHeadingQuestionTooltip} from 'sentry/components/pageHeadingQuestionTooltip';
- import {t} from 'sentry/locale';
- import {MutableSearch} from 'sentry/utils/tokenizeSearch';
- import useOrganization from 'sentry/utils/useOrganization';
- import {
- NumberOfPipelinesChart,
- PipelineDurationChart,
- TotalTokensUsedChart,
- } from 'sentry/views/llmMonitoring/llmMonitoringCharts';
- import {PipelinesTable} from 'sentry/views/llmMonitoring/pipelinesTable';
- import {MODULE_DOC_LINK, MODULE_TITLE} from 'sentry/views/llmMonitoring/settings';
- import * as ModuleLayout from 'sentry/views/performance/moduleLayout';
- import {ModulePageProviders} from 'sentry/views/performance/modulePageProviders';
- import {ModulesOnboarding} from 'sentry/views/performance/onboarding/modulesOnboarding';
- import {OnboardingContent} from 'sentry/views/performance/onboarding/onboardingContent';
- import {useModuleBreadcrumbs} from 'sentry/views/performance/utils/useModuleBreadcrumbs';
- export function LLMMonitoringPage() {
- const organization = useOrganization();
- const crumbs = useModuleBreadcrumbs('ai');
- return (
- <Layout.Page>
- <NoProjectMessage organization={organization}>
- <Layout.Header>
- <Layout.HeaderContent>
- <Breadcrumbs crumbs={crumbs} />
- <Layout.Title>
- {MODULE_TITLE}
- <PageHeadingQuestionTooltip
- title={t('View analytics and information about your AI pipelines')}
- docsUrl={MODULE_DOC_LINK}
- />
- </Layout.Title>
- </Layout.HeaderContent>
- </Layout.Header>
- <Layout.Body>
- <Layout.Main fullWidth>
- <ModuleLayout.Layout>
- <ModuleLayout.Full>
- <PageFilterBar condensed>
- <ProjectPageFilter />
- <EnvironmentPageFilter />
- <DatePageFilter />
- </PageFilterBar>
- </ModuleLayout.Full>
- <ModulesOnboarding
- moduleQueryFilter={new MutableSearch('span.op:ai.pipeline*')}
- onboardingContent={
- <OnboardingContent
- title={t('Get actionable insights about your LLMs')}
- description={t('Send your first AI pipeline to see data here.')}
- link={MODULE_DOC_LINK}
- />
- }
- referrer="api.ai-pipelines.view"
- >
- <ModuleLayout.Third>
- <TotalTokensUsedChart />
- </ModuleLayout.Third>
- <ModuleLayout.Third>
- <NumberOfPipelinesChart />
- </ModuleLayout.Third>
- <ModuleLayout.Third>
- <PipelineDurationChart />
- </ModuleLayout.Third>
- <ModuleLayout.Full>
- <PipelinesTable />
- </ModuleLayout.Full>
- </ModulesOnboarding>
- </ModuleLayout.Layout>
- </Layout.Main>
- </Layout.Body>
- </NoProjectMessage>
- </Layout.Page>
- );
- }
- function PageWithProviders() {
- return (
- <ModulePageProviders moduleName="ai" features="ai-analytics">
- <LLMMonitoringPage />
- </ModulePageProviders>
- );
- }
- export default PageWithProviders;
|