debugFile.ts 645 B

12345678910111213141516171819202122232425262728
  1. import {
  2. type DebugFile as TDebugFile,
  3. DebugFileFeature,
  4. DebugFileType,
  5. } from 'sentry/types';
  6. export function DebugFile(params = {}): TDebugFile {
  7. return {
  8. objectName: 'libS.so',
  9. symbolType: 'elf',
  10. dateCreated: '2010-04-23T02:08:51.179486Z',
  11. debugId: '2oihoi4h5ioh34534oi5h',
  12. data: {
  13. type: DebugFileType.LIB,
  14. features: [DebugFileFeature.UNWIND],
  15. },
  16. id: '12345',
  17. size: 12345,
  18. sha1: '3245klnlk342n5kln3kl45n',
  19. uuid: '3425bkjb234k5jb234jk5',
  20. cpuName: 'arm64',
  21. headers: {
  22. 'Content-Type': 'application/x-elf-binary',
  23. },
  24. codeId: '12312k3jh123',
  25. ...params,
  26. };
  27. }