insightAnalyticEvents.tsx 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. export type InsightEventParameters = {
  2. 'insight.app_start.select_start_type': {type: string};
  3. 'insight.app_start.spans.filter_by_device_class': {filter: string};
  4. 'insight.app_start.spans.filter_by_operation': {filter: string};
  5. 'insight.app_start.spans.toggle_sample_type': {type: string};
  6. 'insight.asset.filter_by_blocking': {filter: string};
  7. // Don't specify filter because page filter are arbitrary values
  8. 'insight.asset.filter_by_page': {};
  9. 'insight.asset.filter_by_type': {filter: string};
  10. 'insight.general.chart_zoom': {chart_name: string; source: string};
  11. 'insight.general.search': {query: string; source: string};
  12. 'insight.general.select_action_value': {source: string; value: string};
  13. // Don't specify domain because domains are arbitrary values
  14. 'insight.general.select_domain_value': {source: string};
  15. 'insight.general.table_paginate': {direction: string; source: string};
  16. 'insight.general.table_sort': {
  17. direction: string;
  18. field: string;
  19. source: string;
  20. };
  21. 'insight.page_loads.ai': {has_data: boolean};
  22. 'insight.page_loads.app_start': {has_data: boolean};
  23. 'insight.page_loads.assets': {has_data: boolean};
  24. 'insight.page_loads.cache': {has_data: boolean};
  25. 'insight.page_loads.db': {has_data: boolean};
  26. 'insight.page_loads.http': {has_data: boolean};
  27. 'insight.page_loads.queue': {has_data: boolean};
  28. 'insight.page_loads.screen_load': {has_data: boolean};
  29. 'insight.page_loads.vital': {has_data: boolean};
  30. 'insight.screen_load.spans.filter_by_device_class': {filter: string};
  31. 'insight.screen_load.spans.filter_by_operation': {filter: string};
  32. 'insight.vital.overview.open_full_waterfall': {};
  33. 'insight.vital.overview.open_transaction_summary': {};
  34. 'insight.vital.overview.toggle_data_type': {type: string};
  35. 'insight.vital.overview.toggle_tab': {tab: string};
  36. 'insight.vital.vital_sidebar_opened': {vital: string};
  37. };
  38. export type InsightEventKey = keyof InsightEventParameters;
  39. export const insightEventMap: Record<InsightEventKey, string | null> = {
  40. 'insight.page_loads.ai': 'Insights: AI Page Load',
  41. 'insight.page_loads.app_start': 'Insights: App Start Page Load',
  42. 'insight.page_loads.assets': 'Insights: Assets Page Load',
  43. 'insight.page_loads.cache': 'Insights: Cache Page Load',
  44. 'insight.page_loads.db': 'Insights: DB Page Load',
  45. 'insight.page_loads.http': 'Insights: HTTP Page Load',
  46. 'insight.page_loads.queue': 'Insights: Queue Page Load',
  47. 'insight.page_loads.screen_load': 'Insights: Screen Load Page Load',
  48. 'insight.page_loads.vital': 'Insights: Vital Page Load',
  49. 'insight.app_start.select_start_type': 'Insights: App Start - select app start type',
  50. 'insight.app_start.spans.filter_by_device_class':
  51. 'Insights: App Start - filter device class',
  52. 'insight.app_start.spans.filter_by_operation': 'Insights: App Start - filter operation',
  53. 'insight.app_start.spans.toggle_sample_type':
  54. 'Insights: App Start - toggle sample type',
  55. 'insight.asset.filter_by_blocking': 'Insights: Assets - filter blocking',
  56. 'insight.asset.filter_by_page': 'Insights: Assets - filter page',
  57. 'insight.asset.filter_by_type': 'Insights: Assets - filter asset type',
  58. 'insight.general.chart_zoom': 'Insights: chart zoom',
  59. 'insight.general.search': 'Insights: search in modules',
  60. 'insight.general.select_action_value': 'Insights: select actionSelector dropdown value',
  61. 'insight.general.select_domain_value': 'Insights: select domainSelector dropdown value',
  62. 'insight.general.table_paginate': 'Insights: paginate table',
  63. 'insight.general.table_sort': 'Insights: sort table',
  64. 'insight.screen_load.spans.filter_by_device_class':
  65. 'Insights: Screen Loads - filter device class',
  66. 'insight.screen_load.spans.filter_by_operation':
  67. 'Insights: Screen Loads - filter operation',
  68. 'insight.vital.vital_sidebar_opened': 'Insights: Web Vitals - vital sidebar opened',
  69. 'insight.vital.overview.toggle_tab': 'Insights: Web Vitals Overview - toggle tab',
  70. 'insight.vital.overview.open_transaction_summary':
  71. 'Insights: Web Vitals Overview - open transaction summary',
  72. 'insight.vital.overview.open_full_waterfall':
  73. 'Insights: Web Vitals Overview - open full waterfall',
  74. 'insight.vital.overview.toggle_data_type':
  75. 'Insights: Web Vitals Overview - toggle data type',
  76. };