performanceAnalyticsEvents.tsx 9.2 KB

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