eventEntryDebugMeta.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import {type EntryDebugMeta, EntryType} from 'sentry/types';
  2. import {
  3. CandidateDownloadStatus,
  4. CandidateProcessingStatus,
  5. ImageStatus,
  6. } from 'sentry/types/debugImage';
  7. export function EventEntryDebugMeta(params = {}): EntryDebugMeta {
  8. return {
  9. type: EntryType.DEBUGMETA,
  10. data: {
  11. images: [
  12. {
  13. arch: 'x86_64',
  14. candidates: [
  15. {
  16. location: '',
  17. download: {
  18. status: CandidateDownloadStatus.NOT_FOUND,
  19. },
  20. source: 'sentry:microsoft',
  21. source_name: 'Microsoft',
  22. },
  23. {
  24. debug: {status: CandidateProcessingStatus.OK},
  25. download: {
  26. features: {
  27. has_debug_info: true,
  28. has_sources: false,
  29. has_symbols: true,
  30. has_unwind_info: false,
  31. },
  32. status: CandidateDownloadStatus.OK,
  33. },
  34. location: 'sentry://project_debug_file/17',
  35. source: 'sentry:project',
  36. source_name: 'Sentry',
  37. },
  38. {
  39. download: {
  40. status: CandidateDownloadStatus.MALFORMED,
  41. },
  42. location: 'burgenland',
  43. source_name: 'Austria',
  44. source: 'sentry://project_debug_file/18',
  45. },
  46. {
  47. download: {
  48. status: CandidateDownloadStatus.MALFORMED,
  49. },
  50. location: 'brussels',
  51. source: 'sentry://project_debug_file/19',
  52. source_name: 'Belgium',
  53. },
  54. {
  55. download: {
  56. status: CandidateDownloadStatus.MALFORMED,
  57. },
  58. location: 'arizona',
  59. source: 'sentry://project_debug_file/20',
  60. source_name: 'America',
  61. },
  62. ],
  63. code_file: '/Users/foo/Coding/sentry-native/build/./sentry_example',
  64. code_id: '43fd26cc39043633a546f1b003ea17a4',
  65. debug_file: 'sentry_example',
  66. debug_id: '43fd26cc-3904-3633-a546-f1b003ea17a4',
  67. debug_status: ImageStatus.FOUND,
  68. features: {
  69. has_debug_info: true,
  70. has_sources: false,
  71. has_symbols: true,
  72. has_unwind_info: false,
  73. },
  74. image_addr: '0x10753f000',
  75. image_size: 16384,
  76. type: 'macho',
  77. unwind_status: ImageStatus.UNUSED,
  78. },
  79. ],
  80. },
  81. ...params,
  82. };
  83. }