eventStacktraceFrame.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import {Frame} from 'sentry/types/event';
  2. export function EventStacktraceFrameFixture(params = {}): Frame {
  3. return {
  4. filename: 'raven/base.py',
  5. absPath: '/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/base.py',
  6. module: 'raven.base',
  7. package: null,
  8. platform: null,
  9. instructionAddr: null,
  10. symbolAddr: null,
  11. function: 'build_msg',
  12. rawFunction: null,
  13. symbol: null,
  14. context: [
  15. [298, ' frames = stack'],
  16. [299, ''],
  17. [300, ' data.update({'],
  18. [301, " 'sentry.interfaces.Stacktrace': {"],
  19. [302, " 'frames': get_stack_info(frames,"],
  20. [303, ' transformer=self.transform)'],
  21. [304, ' },'],
  22. [305, ' })'],
  23. [306, ''],
  24. [307, " if 'sentry.interfaces.Stacktrace' in data:"],
  25. [308, ' if self.include_paths:'],
  26. ],
  27. lineNo: 303,
  28. colNo: null,
  29. inApp: true,
  30. trust: null,
  31. vars: {
  32. "'culprit'": null,
  33. "'data'": {
  34. "'message'": "u'This is a test message generated using ``raven test``'",
  35. "'sentry.interfaces.Message'": {
  36. "'message'": "u'This is a test message generated using ``raven test``'",
  37. "'params'": [],
  38. },
  39. },
  40. "'date'": 'datetime.datetime(2013, 8, 13, 3, 8, 24, 880386)',
  41. "'event_id'": "'54a322436e1b47b88e239b78998ae742'",
  42. "'event_type'": "'raven.events.Message'",
  43. "'extra'": {
  44. "'go_deeper'": [['{"\'bar\'":["\'baz\'"],"\'foo\'":"\'bar\'"}']],
  45. "'loadavg'": [0.37255859375, 0.5341796875, 0.62939453125],
  46. "'user'": "'dcramer'",
  47. },
  48. "'frames'": '<generator object iter_stack_frames at 0x107bcc3c0>',
  49. "'handler'": '<raven.events.Message object at 0x107bd0890>',
  50. "'k'": "'sentry.interfaces.Message'",
  51. "'kwargs'": {
  52. "'level'": 20,
  53. "'message'": "'This is a test message generated using ``raven test``'",
  54. },
  55. "'public_key'": null,
  56. "'result'": {
  57. "'message'": "u'This is a test message generated using ``raven test``'",
  58. "'sentry.interfaces.Message'": {
  59. "'message'": "u'This is a test message generated using ``raven test``'",
  60. "'params'": [],
  61. },
  62. },
  63. "'self'": '<raven.base.Client object at 0x107bb8210>',
  64. "'stack'": true,
  65. "'tags'": null,
  66. "'time_spent'": null,
  67. "'v'": {
  68. "'message'": "u'This is a test message generated using ``raven test``'",
  69. "'params'": [],
  70. },
  71. },
  72. ...params,
  73. };
  74. }