profilingAnalyticsEvents.tsx 1.3 KB

1234567891011121314151617181920212223242526272829
  1. export type ProfilingEventParameters = {
  2. 'profiling_views.give_feedback_action': {};
  3. 'profiling_views.go_to_flamegraph': {source: string};
  4. 'profiling_views.go_to_transaction': {source: string};
  5. 'profiling_views.landing': {};
  6. 'profiling_views.onboarding': {};
  7. 'profiling_views.onboarding_action': {
  8. action: 'done' | 'dismissed';
  9. };
  10. 'profiling_views.profile_details': {};
  11. 'profiling_views.profile_flamegraph': {};
  12. 'profiling_views.profile_summary': {};
  13. 'profiling_views.visit_discord_channel': {};
  14. };
  15. type EventKey = keyof ProfilingEventParameters;
  16. export const profilingEventMap: Record<EventKey, string> = {
  17. 'profiling_views.landing': 'Profiling Views: Landing',
  18. 'profiling_views.onboarding': 'Profiling Views: Onboarding',
  19. 'profiling_views.profile_flamegraph': 'Profiling Views: Flamegraph',
  20. 'profiling_views.profile_summary': 'Profiling Views: Profile Summary',
  21. 'profiling_views.profile_details': 'Profiling Views: Profile Details',
  22. 'profiling_views.go_to_flamegraph': 'Profiling Views: Go to Flamegraph',
  23. 'profiling_views.go_to_transaction': 'Profiling Views: Go to Transaction',
  24. 'profiling_views.onboarding_action': 'Profiling Actions: Onboarding Action',
  25. 'profiling_views.give_feedback_action': 'Profiling Actions: Feedback Action',
  26. 'profiling_views.visit_discord_channel': 'Profiling Actions: Visit Discord Channel',
  27. };