eventEntryStacktrace.js 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. export function EventEntryStacktrace(params = {}) {
  2. return {
  3. type: 'stacktrace',
  4. data: {
  5. framesOmitted: null,
  6. hasSystemFrames: false,
  7. registers: null,
  8. frames: [
  9. {
  10. filename: 'raven/base.py',
  11. absPath: '/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/base.py',
  12. module: 'raven.base',
  13. package: null,
  14. platform: null,
  15. instructionAddr: null,
  16. symbolAddr: null,
  17. function: 'build_msg',
  18. rawFunction: null,
  19. symbol: null,
  20. context: [
  21. [298, ' frames = stack'],
  22. [299, ''],
  23. [300, ' data.update({'],
  24. [301, " 'sentry.interfaces.Stacktrace': {"],
  25. [302, " 'frames': get_stack_info(frames,"],
  26. [303, ' transformer=self.transform)'],
  27. [304, ' },'],
  28. [305, ' })'],
  29. [306, ''],
  30. [307, " if 'sentry.interfaces.Stacktrace' in data:"],
  31. [308, ' if self.include_paths:'],
  32. ],
  33. lineNo: 303,
  34. colNo: null,
  35. inApp: false,
  36. trust: null,
  37. errors: null,
  38. vars: {
  39. "'culprit'": null,
  40. "'data'": {
  41. "'message'": "u'This is a test message generated using ``raven test``'",
  42. "'sentry.interfaces.Message'": {
  43. "'message'": "u'This is a test message generated using ``raven test``'",
  44. "'params'": [],
  45. },
  46. },
  47. "'date'": 'datetime.datetime(2013, 8, 13, 3, 8, 24, 880386)',
  48. "'event_id'": "'54a322436e1b47b88e239b78998ae742'",
  49. "'event_type'": "'raven.events.Message'",
  50. "'extra'": {
  51. "'go_deeper'": [['{"\'bar\'":["\'baz\'"],"\'foo\'":"\'bar\'"}']],
  52. "'loadavg'": [0.37255859375, 0.5341796875, 0.62939453125],
  53. "'user'": "'dcramer'",
  54. },
  55. "'frames'": '<generator object iter_stack_frames at 0x107bcc3c0>',
  56. "'handler'": '<raven.events.Message object at 0x107bd0890>',
  57. "'k'": "'sentry.interfaces.Message'",
  58. "'kwargs'": {
  59. "'level'": 20,
  60. "'message'": "'This is a test message generated using ``raven test``'",
  61. },
  62. "'public_key'": null,
  63. "'result'": {
  64. "'message'": "u'This is a test message generated using ``raven test``'",
  65. "'sentry.interfaces.Message'": {
  66. "'message'": "u'This is a test message generated using ``raven test``'",
  67. "'params'": [],
  68. },
  69. },
  70. "'self'": '<raven.base.Client object at 0x107bb8210>',
  71. "'stack'": true,
  72. "'tags'": null,
  73. "'time_spent'": null,
  74. "'v'": {
  75. "'message'": "u'This is a test message generated using ``raven test``'",
  76. "'params'": [],
  77. },
  78. },
  79. minGroupingLevel: 4,
  80. },
  81. {
  82. filename: 'raven/base.py',
  83. absPath: '/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/base.py',
  84. module: 'raven.base',
  85. package: null,
  86. platform: null,
  87. instructionAddr: null,
  88. symbolAddr: null,
  89. function: 'capture',
  90. rawFunction: null,
  91. symbol: null,
  92. context: [
  93. [454, ' if not self.is_enabled():'],
  94. [455, ' return'],
  95. [456, ''],
  96. [457, ' data = self.build_msg('],
  97. [
  98. 458,
  99. ' event_type, data, date, time_spent, extra, stack, tags=tags,',
  100. ],
  101. [459, ' **kwargs)'],
  102. [460, ''],
  103. [461, ' self.send(**data)'],
  104. [462, ''],
  105. [463, " return (data.get('event_id'),)"],
  106. [464, ''],
  107. ],
  108. lineNo: 459,
  109. colNo: null,
  110. inApp: false,
  111. trust: null,
  112. errors: null,
  113. vars: {
  114. "'data'": null,
  115. "'date'": null,
  116. "'event_type'": "'raven.events.Message'",
  117. "'extra'": {
  118. "'go_deeper'": [['{"\'bar\'":["\'baz\'"],"\'foo\'":"\'bar\'"}']],
  119. "'loadavg'": [0.37255859375, 0.5341796875, 0.62939453125],
  120. "'user'": "'dcramer'",
  121. },
  122. "'kwargs'": {
  123. "'level'": 20,
  124. "'message'": "'This is a test message generated using ``raven test``'",
  125. },
  126. "'self'": '<raven.base.Client object at 0x107bb8210>',
  127. "'stack'": true,
  128. "'tags'": null,
  129. "'time_spent'": null,
  130. },
  131. minGroupingLevel: 3,
  132. },
  133. {
  134. filename: 'raven/base.py',
  135. absPath: '/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/base.py',
  136. module: 'raven.base',
  137. package: null,
  138. platform: null,
  139. instructionAddr: null,
  140. symbolAddr: null,
  141. function: 'captureMessage',
  142. rawFunction: null,
  143. symbol: null,
  144. context: [
  145. [572, ' """'],
  146. [573, ' Creates an event from ``message``.'],
  147. [574, ''],
  148. [575, " >>> client.captureMessage('My event just happened!')"],
  149. [576, ' """'],
  150. [
  151. 577,
  152. " return self.capture('raven.events.Message', message=message, **kwargs)",
  153. ],
  154. [578, ''],
  155. [579, ' def captureException(self, exc_info=None, **kwargs):'],
  156. [580, ' """'],
  157. [581, ' Creates an event from an exception.'],
  158. [582, ''],
  159. ],
  160. lineNo: 577,
  161. colNo: null,
  162. inApp: false,
  163. trust: null,
  164. errors: null,
  165. vars: {
  166. "'kwargs'": {
  167. "'data'": null,
  168. "'extra'": {
  169. "'go_deeper'": ['[{"\'bar\'":["\'baz\'"],"\'foo\'":"\'bar\'"}]'],
  170. "'loadavg'": [0.37255859375, 0.5341796875, 0.62939453125],
  171. "'user'": "'dcramer'",
  172. },
  173. "'level'": 20,
  174. "'stack'": true,
  175. "'tags'": null,
  176. },
  177. "'message'": "'This is a test message generated using ``raven test``'",
  178. "'self'": '<raven.base.Client object at 0x107bb8210>',
  179. },
  180. minGroupingLevel: 2,
  181. },
  182. {
  183. filename: 'raven/scripts/runner.py',
  184. absPath:
  185. '/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/scripts/runner.py',
  186. module: 'raven.scripts.runner',
  187. package: null,
  188. platform: null,
  189. instructionAddr: null,
  190. symbolAddr: null,
  191. function: 'send_test_message',
  192. rawFunction: null,
  193. symbol: null,
  194. context: [
  195. [72, ' level=logging.INFO,'],
  196. [73, ' stack=True,'],
  197. [74, " tags=options.get('tags', {}),"],
  198. [75, ' extra={'],
  199. [76, " 'user': get_uid(),"],
  200. [77, " 'loadavg': get_loadavg(),"],
  201. [78, ' },'],
  202. [79, ' ))'],
  203. [80, ''],
  204. [81, ' if client.state.did_fail():'],
  205. [82, " print('error!')"],
  206. ],
  207. lineNo: 77,
  208. colNo: null,
  209. inApp: false,
  210. trust: null,
  211. errors: null,
  212. vars: {
  213. "'client'": '<raven.base.Client object at 0x107bb8210>',
  214. "'data'": null,
  215. "'k'": '[Filtered]',
  216. "'options'": {
  217. "'data'": null,
  218. "'tags'": null,
  219. },
  220. },
  221. minGroupingLevel: 1,
  222. },
  223. {
  224. filename: 'raven/scripts/runner.py',
  225. absPath:
  226. '/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/scripts/runner.py',
  227. module: 'raven.scripts.runner',
  228. package: null,
  229. platform: null,
  230. instructionAddr: null,
  231. symbolAddr: null,
  232. function: 'main',
  233. rawFunction: null,
  234. symbol: null,
  235. context: [
  236. [107, ' print("Using DSN configuration:")'],
  237. [108, ' print(" ", dsn)'],
  238. [109, ' print()'],
  239. [110, ''],
  240. [111, " client = Client(dsn, include_paths=['raven'])"],
  241. [112, ' send_test_message(client, opts.__dict__)'],
  242. ],
  243. lineNo: 112,
  244. colNo: null,
  245. inApp: false,
  246. trust: null,
  247. errors: null,
  248. vars: {
  249. "'args'": [
  250. "'test'",
  251. "'https://ebc35f33e151401f9deac549978bda11:[Filtered]@sentry.io/1'",
  252. ],
  253. "'client'": '<raven.base.Client object at 0x107bb8210>',
  254. "'dsn'": "'https://ebc35f33e151401f9deac549978bda11:[Filtered]@sentry.io/1'",
  255. "'opts'": "<Values at 0x107ba3b00: {'data': None, 'tags': None}>",
  256. "'parser'": '<optparse.OptionParser instance at 0x107ba3368>',
  257. "'root'": '<logging.Logger object at 0x107ba5b10>',
  258. },
  259. minGroupingLevel: 0,
  260. },
  261. ],
  262. },
  263. ...params,
  264. };
  265. }