dynamicSamplingAnalyticsEvents.tsx 1004 B

12345678910111213141516171819202122232425262728
  1. import {DynamicSamplingBiasType} from 'sentry/types/sampling';
  2. export type DynamicSamplingEventParameters = {
  3. 'dynamic_sampling_settings.priority_disabled': {
  4. id: DynamicSamplingBiasType;
  5. project_id: string;
  6. };
  7. 'dynamic_sampling_settings.priority_enabled': {
  8. id: DynamicSamplingBiasType;
  9. project_id: string;
  10. };
  11. 'dynamic_sampling_settings.read_docs_clicked': {
  12. project_id: string;
  13. };
  14. 'dynamic_sampling_settings.viewed': {
  15. project_id: string;
  16. };
  17. };
  18. type DynamicSamplingAnalyticsKey = keyof DynamicSamplingEventParameters;
  19. export const dynamicSamplingEventMap: Record<DynamicSamplingAnalyticsKey, string> = {
  20. 'dynamic_sampling_settings.viewed': 'Viewed dynamic sampling settings page',
  21. 'dynamic_sampling_settings.priority_disabled': 'Disabled dynamic sampling priority',
  22. 'dynamic_sampling_settings.priority_enabled': 'Enabled dynamic sampling priority',
  23. 'dynamic_sampling_settings.read_docs_clicked':
  24. 'Clicked on dynamic sampling read docs button',
  25. };