DBModule.tsx 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import * as Layout from 'sentry/components/layouts/thirds';
  2. import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
  3. import {
  4. PageErrorAlert,
  5. PageErrorProvider,
  6. } from 'sentry/utils/performance/contexts/pageError';
  7. import useOrganization from 'sentry/utils/useOrganization';
  8. import {StarfishPageFiltersContainer} from 'sentry/views/starfish/components/starfishPageFiltersContainer';
  9. import {ModuleName} from 'sentry/views/starfish/types';
  10. import {ROUTE_NAMES} from 'sentry/views/starfish/utils/routeNames';
  11. import SpansView from 'sentry/views/starfish/views/spans/spansView';
  12. export default function DBModule() {
  13. const organization = useOrganization();
  14. return (
  15. <SentryDocumentTitle title={ROUTE_NAMES.database} orgSlug={organization.slug}>
  16. <Layout.Page>
  17. <PageErrorProvider>
  18. <Layout.Header>
  19. <Layout.HeaderContent>
  20. <Layout.Title>{ROUTE_NAMES.database}</Layout.Title>
  21. </Layout.HeaderContent>
  22. </Layout.Header>
  23. <Layout.Body>
  24. <Layout.Main fullWidth>
  25. <PageErrorAlert />
  26. <StarfishPageFiltersContainer>
  27. <SpansView moduleName={ModuleName.DB} />
  28. </StarfishPageFiltersContainer>
  29. </Layout.Main>
  30. </Layout.Body>
  31. </PageErrorProvider>
  32. </Layout.Page>
  33. </SentryDocumentTitle>
  34. );
  35. }