performanceAnalyticsEvents.tsx 7.0 KB

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