performanceAnalyticsEvents.tsx 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. import {PlatformKey} from 'sentry/data/platformCategories';
  2. type SampleTransactionParam = {
  3. platform?: PlatformKey;
  4. };
  5. type PerformanceTourParams = {
  6. duration: number;
  7. step: number;
  8. };
  9. export type PerformanceEventParameters = {
  10. 'performance_views.all_events.open_in_discover': {};
  11. 'performance_views.create_sample_transaction': SampleTransactionParam;
  12. 'performance_views.event_details.anchor_span': {
  13. span_id: string;
  14. };
  15. 'performance_views.event_details.filter_by_op': {
  16. operation: string;
  17. };
  18. 'performance_views.event_details.json_button_click': {};
  19. 'performance_views.event_details.open_span_details': {
  20. operation: string;
  21. };
  22. 'performance_views.event_details.search_query': {};
  23. 'performance_views.filter_dropdown.selection': {
  24. action: string;
  25. };
  26. 'performance_views.landingv2.transactions.sort': {
  27. direction?: string;
  28. field?: string;
  29. };
  30. 'performance_views.landingv3.batch_queries': {
  31. num_collected: number;
  32. num_saved: number;
  33. num_sent: number;
  34. };
  35. 'performance_views.landingv3.display_change': {
  36. change_to_display: string;
  37. current_display: string;
  38. default_display: string;
  39. is_default: boolean;
  40. };
  41. 'performance_views.landingv3.table_pagination': {
  42. direction: string;
  43. };
  44. 'performance_views.landingv3.widget.interaction': {
  45. widget_type?: string;
  46. };
  47. 'performance_views.landingv3.widget.switch': {
  48. from_default?: boolean;
  49. from_widget?: string;
  50. to_widget?: string;
  51. };
  52. 'performance_views.overview.cellaction': {action?: string};
  53. 'performance_views.overview.navigate.summary': {
  54. project_platforms: string;
  55. };
  56. 'performance_views.overview.search': {};
  57. 'performance_views.overview.view': {
  58. project_platforms: string;
  59. show_onboarding: boolean;
  60. };
  61. 'performance_views.project_transaction_threshold.change': {
  62. from: string;
  63. key: string;
  64. to: string;
  65. };
  66. 'performance_views.project_transaction_threshold.clear': {};
  67. 'performance_views.relative_breakdown.selection': {
  68. action: string;
  69. };
  70. 'performance_views.span_summary.change_chart': {
  71. change_to_display: string;
  72. };
  73. 'performance_views.span_summary.view': {
  74. project_platforms: string;
  75. };
  76. 'performance_views.spans.change_op': {
  77. operation_name?: string;
  78. };
  79. 'performance_views.spans.change_sort': {
  80. sort_column?: string;
  81. };
  82. 'performance_views.summary.tag_explorer.cell_action': {};
  83. 'performance_views.summary.tag_explorer.change_page': {};
  84. 'performance_views.summary.tag_explorer.sort': {
  85. direction?: string;
  86. field?: string;
  87. };
  88. 'performance_views.summary.tag_explorer.tag_value': {};
  89. 'performance_views.summary.tag_explorer.visit_tag_key': {};
  90. 'performance_views.tags.change_aggregate_column': {
  91. value: string;
  92. };
  93. 'performance_views.tags.change_tag': {
  94. from_tag: string;
  95. is_other_tag: boolean;
  96. to_tag: string;
  97. };
  98. 'performance_views.tags.jump_to_release': {};
  99. 'performance_views.team_key_transaction.set': {
  100. action: string;
  101. };
  102. 'performance_views.tour.advance': PerformanceTourParams;
  103. 'performance_views.tour.close': PerformanceTourParams;
  104. 'performance_views.tour.start': {};
  105. 'performance_views.trace_view.open_in_discover': {};
  106. 'performance_views.trace_view.open_transaction_details': {
  107. operation: string;
  108. transaction: string;
  109. };
  110. 'performance_views.trace_view.view': {};
  111. 'performance_views.transaction_summary.change_chart_display': {
  112. from_chart: string;
  113. to_chart: string;
  114. };
  115. 'performance_views.transaction_summary.status_breakdown_click': {
  116. status: string;
  117. };
  118. 'performance_views.transaction_summary.view': {};
  119. 'performance_views.trends.change_duration': {
  120. value: string;
  121. widget_type: string;
  122. };
  123. 'performance_views.trends.widget_interaction': {
  124. widget_type: string;
  125. };
  126. 'performance_views.trends.widget_pagination': {
  127. direction: string;
  128. widget_type: string;
  129. };
  130. 'performance_views.vital_detail.switch_vital': {
  131. from_vital: string;
  132. to_vital: string;
  133. };
  134. 'performance_views.vital_detail.view': {
  135. project_platforms: string;
  136. };
  137. };
  138. export type PerformanceEventKey = keyof PerformanceEventParameters;
  139. export const performanceEventMap: Record<PerformanceEventKey, string | null> = {
  140. 'performance_views.create_sample_transaction': 'Growth: Performance Sample Transaction',
  141. 'performance_views.tour.start': 'Performance Views: Tour Start',
  142. 'performance_views.tour.advance': 'Performance Views: Tour Advance',
  143. 'performance_views.tour.close': 'Performance Views: Tour Close',
  144. 'performance_views.landingv2.transactions.sort':
  145. 'Performance Views: Landing Transactions Sorted',
  146. 'performance_views.overview.navigate.summary':
  147. 'Performance Views: Overview view summary',
  148. 'performance_views.overview.cellaction': 'Performance Views: Cell Action Clicked',
  149. 'performance_views.landingv3.widget.interaction':
  150. 'Performance Views: Landing Widget Interaction',
  151. 'performance_views.landingv3.widget.switch':
  152. 'Performance Views: Landing Widget Switched',
  153. 'performance_views.landingv3.batch_queries':
  154. 'Performance Views: Landing Query Batching',
  155. 'performance_views.landingv3.display_change': 'Performance Views: Switch Landing Tabs',
  156. 'performance_views.landingv3.table_pagination':
  157. 'Performance Views: Landing Page Transactions Table Page Changed',
  158. 'performance_views.span_summary.change_chart':
  159. 'Performance Views: Span Summary displayed chart changed',
  160. 'performance_views.span_summary.view': 'Performance Views: Span Summary page viewed',
  161. 'performance_views.spans.change_op': 'Performance Views: Change span operation name',
  162. 'performance_views.spans.change_sort': 'Performance Views: Change span sort column',
  163. 'performance_views.summary.tag_explorer.tag_value':
  164. 'Performance Views: Tag Explorer Value Clicked',
  165. 'performance_views.summary.tag_explorer.cell_action':
  166. 'Performance Views: Tag Explorer Cell Action Clicked',
  167. 'performance_views.summary.tag_explorer.visit_tag_key':
  168. 'Performance Views: Tag Explorer - Visit Tag Key',
  169. 'performance_views.summary.tag_explorer.change_page':
  170. 'Performance Views: Tag Explorer Change Page',
  171. 'performance_views.summary.tag_explorer.sort': 'Performance Views: Tag Explorer Sorted',
  172. 'performance_views.overview.view': 'Performance Views: Transaction overview view',
  173. 'performance_views.overview.search': 'Performance Views: Transaction overview search',
  174. 'performance_views.project_transaction_threshold.change':
  175. 'Project Transaction Threshold: Changed',
  176. 'performance_views.project_transaction_threshold.clear':
  177. 'Project Transaction Threshold: Cleared',
  178. 'performance_views.vital_detail.view': 'Performance Views: Vital Detail viewed',
  179. 'performance_views.vital_detail.switch_vital':
  180. 'Performance Views: Vital Detail vital type switched',
  181. 'performance_views.trace_view.view': 'Performance Views: Trace View viewed',
  182. 'performance_views.trace_view.open_in_discover':
  183. 'Performance Views: Trace View open in Discover button clicked',
  184. 'performance_views.trace_view.open_transaction_details':
  185. 'Performance Views: Trace View transaction details opened',
  186. 'performance_views.transaction_summary.change_chart_display':
  187. 'Performance Views: Transaction Summary chart display changed',
  188. 'performance_views.transaction_summary.status_breakdown_click':
  189. 'Performance Views: Transaction Summary status breakdown option clicked',
  190. 'performance_views.all_events.open_in_discover':
  191. 'Performance Views: All Events page open in Discover button clicked',
  192. 'performance_views.tags.change_aggregate_column':
  193. 'Performance Views: Tags page changed aggregate column',
  194. 'performance_views.tags.change_tag':
  195. 'Performance Views: Tags Page changed selected tag',
  196. 'performance_views.tags.jump_to_release':
  197. 'Performance Views: Tags Page link to release in table clicked',
  198. 'performance_views.team_key_transaction.set':
  199. 'Performance Views: Set Team Key Transaction',
  200. 'performance_views.trends.widget_interaction':
  201. 'Performance Views: Trends Widget Interaction',
  202. 'performance_views.trends.widget_pagination':
  203. 'Performance Views: Trends Widget Page Changed',
  204. 'performance_views.trends.change_duration':
  205. 'Performance Views: Trends Widget Duration Changed',
  206. 'performance_views.event_details.filter_by_op':
  207. 'Performance Views: Event Details page operation filter applied',
  208. 'performance_views.event_details.search_query':
  209. 'Performance Views: Event Details search query',
  210. 'performance_views.event_details.open_span_details':
  211. 'Performance Views: Event Details span details opened',
  212. 'performance_views.event_details.anchor_span':
  213. 'Performance Views: Event Details span anchored',
  214. 'performance_views.event_details.json_button_click':
  215. 'Performance Views: Event Details JSON button clicked',
  216. 'performance_views.transaction_summary.view':
  217. 'Performance Views: Transaction Summary View',
  218. 'performance_views.filter_dropdown.selection': 'Performance Views: Filter Dropdown',
  219. 'performance_views.relative_breakdown.selection':
  220. 'Performance Views: Select Relative Breakdown',
  221. };