123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import FeatureBadge from 'sentry/components/badge/featureBadge';
- 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,
- RELEASE_LEVEL,
- } 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}
- />
- <FeatureBadge type={RELEASE_LEVEL} />
- </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;
|