performanceAnalyticsEvents.tsx 7.5 KB

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