1234567891011121314151617181920212223 |
- import {Project} from 'sentry/types';
- import useOrganization from 'sentry/utils/useOrganization';
- import ServerSideSampling from '../server-side-sampling';
- import {DynamicSampling} from './dynamicSampling';
- type Props = {
- project: Project;
- };
- export default function DynamicSamplingContainer({project}: Props) {
- const organization = useOrganization();
- if (
- organization.features.includes('server-side-sampling') &&
- organization.features.includes('dynamic-sampling')
- ) {
- return <DynamicSampling project={project} />;
- }
- return <ServerSideSampling project={project} />;
- }
|