performanceAnalyticsEvents.tsx 8.8 KB

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