tracingEventMap.tsx 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. export type TracingEventParameters = {
  2. 'trace.shape': {
  3. shape: string;
  4. };
  5. 'trace.trace_layout.change': {
  6. layout: string;
  7. };
  8. 'trace.trace_layout.drawer_minimize': {};
  9. 'trace.trace_layout.reset_zoom': {};
  10. 'trace.trace_layout.search_cancel': {};
  11. 'trace.trace_layout.search_focus': {};
  12. 'trace.trace_layout.search_result_jump': {
  13. direction: string;
  14. };
  15. 'trace.trace_layout.show_in_view': {};
  16. 'trace.trace_layout.tab_pin': {};
  17. 'trace.trace_layout.tab_view': {
  18. tab: string;
  19. };
  20. 'trace.trace_layout.view_event_json': {};
  21. 'trace.trace_layout.view_in_insight_module': {
  22. module: string;
  23. };
  24. 'trace.trace_layout.view_shortcuts': {};
  25. 'trace.trace_layout.zoom_to_fill': {};
  26. 'trace.trace_warning_type': {
  27. type: string;
  28. };
  29. 'trace_explorer.add_span_condition': {};
  30. 'trace_explorer.open_in_issues': {};
  31. 'trace_explorer.open_trace': {};
  32. 'trace_explorer.open_trace_span': {};
  33. 'trace_explorer.remove_span_condition': {};
  34. 'trace_explorer.search_failure': {
  35. error: string;
  36. queries: string[];
  37. };
  38. 'trace_explorer.search_request': {
  39. queries: string[];
  40. };
  41. 'trace_explorer.search_success': {
  42. has_data: boolean;
  43. queries: string[];
  44. };
  45. 'trace_explorer.toggle_trace_details': {
  46. expanded: boolean;
  47. };
  48. };
  49. export type TracingEventKey = keyof TracingEventParameters;
  50. export const tracingEventMap: Record<TracingEventKey, string | null> = {
  51. 'trace.shape': 'Trace Shape',
  52. 'trace.trace_layout.change': 'Changed Trace Layout',
  53. 'trace.trace_layout.drawer_minimize': 'Minimized Trace Drawer',
  54. 'trace.trace_layout.show_in_view': 'Clicked Show in View Action',
  55. 'trace.trace_layout.view_event_json': 'Clicked View Event JSON Action',
  56. 'trace.trace_layout.tab_pin': 'Pinned Trace Tab',
  57. 'trace.trace_layout.tab_view': 'Viewed Trace Tab',
  58. 'trace.trace_layout.search_focus': 'Focused Trace Search',
  59. 'trace.trace_layout.reset_zoom': 'Reset Trace Zoom',
  60. 'trace.trace_layout.view_shortcuts': 'Viewed Trace Shortcuts',
  61. 'trace.trace_warning_type': 'Viewed Trace Warning Type',
  62. 'trace.trace_layout.zoom_to_fill': 'Trace Zoom to Fill',
  63. 'trace.trace_layout.search_cancel': 'Cancel Trace Search',
  64. 'trace.trace_layout.view_in_insight_module': 'View Trace Span in Insight Module',
  65. 'trace.trace_layout.search_result_jump': 'Jumped to Trace Search Result',
  66. 'trace_explorer.add_span_condition': 'Trace Explorer: Add Span Condition',
  67. 'trace_explorer.open_in_issues': 'Trace Explorer: Open Trace in Issues',
  68. 'trace_explorer.open_trace': 'Trace Explorer: Open Trace in Trace Viewer',
  69. 'trace_explorer.open_trace_span': 'Trace Explorer: Open Trace Span in Trace Viewer',
  70. 'trace_explorer.remove_span_condition': 'Trace Explorer: Remove Span Condition',
  71. 'trace_explorer.toggle_trace_details': 'Trace Explorer: Toggle Trace Details in Table',
  72. 'trace_explorer.search_failure': 'Trace Explorer: Search Failure',
  73. 'trace_explorer.search_request': 'Trace Explorer: Search Request',
  74. 'trace_explorer.search_success': 'Trace Explorer: Search Success',
  75. };