js_error_with_context.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "exception": {
  3. "values": [
  4. {
  5. "type": "Error",
  6. "value": "Error with context",
  7. "stacktrace": {
  8. "frames": [
  9. {
  10. "colno": 31,
  11. "filename": "http://localhost:4201/polyfills.js",
  12. "function": "globalZoneAwareCallback",
  13. "in_app": true,
  14. "lineno": 1660
  15. }
  16. ]
  17. },
  18. "mechanism": { "handled": true, "type": "generic" }
  19. }
  20. ]
  21. },
  22. "level": "error",
  23. "event_id": "34526172dfbe4c9c92bf1e6f14d6cd25",
  24. "platform": "javascript",
  25. "sdk": {
  26. "name": "sentry.javascript.browser",
  27. "packages": [{ "name": "npm:@sentry/browser", "version": "5.20.1" }],
  28. "version": "5.20.1",
  29. "integrations": [
  30. "InboundFilters",
  31. "FunctionToString",
  32. "TryCatch",
  33. "Breadcrumbs",
  34. "GlobalHandlers",
  35. "LinkedErrors",
  36. "UserAgent"
  37. ]
  38. },
  39. "timestamp": 1599504520.529,
  40. "extra": { "foo": "bar" },
  41. "user": { "id": "1", "email": "test@example.com" },
  42. "breadcrumbs": [
  43. {
  44. "timestamp": 1599504392.881,
  45. "category": "console",
  46. "data": {
  47. "arguments": [
  48. "Angular is running in development mode. Call enableProdMode() to enable production mode."
  49. ],
  50. "logger": "console"
  51. },
  52. "level": "log",
  53. "message": "Angular is running in development mode. Call enableProdMode() to enable production mode."
  54. },
  55. {
  56. "timestamp": 1599504393.891,
  57. "category": "ui.click",
  58. "message": "body > app-root > ol > li > button"
  59. },
  60. {
  61. "timestamp": 1599504394.935,
  62. "category": "xhr",
  63. "data": {
  64. "method": "GET",
  65. "url": "http://localhost:4201/sockjs-node/info?t=1599504394897",
  66. "status_code": 200
  67. },
  68. "type": "http"
  69. },
  70. {
  71. "timestamp": 1599504515.072,
  72. "category": "sentry.event",
  73. "event_id": "35f2ef9d299c4fe18747318105e2c42a",
  74. "level": "error",
  75. "message": "A Generic Error "
  76. },
  77. {
  78. "timestamp": 1599504515.08,
  79. "category": "sentry.event",
  80. "event_id": "77f0a7c8af0b44369a021d13f3a4263b",
  81. "level": "error",
  82. "message": "A Generic Error "
  83. },
  84. {
  85. "timestamp": 1599504515.081,
  86. "category": "console",
  87. "data": { "arguments": ["A Generic Error "], "logger": "console" },
  88. "level": "error",
  89. "message": "A Generic Error "
  90. },
  91. {
  92. "timestamp": 1599504515.083,
  93. "category": "ui.click",
  94. "message": "body > app-root > ol > li > button"
  95. },
  96. {
  97. "timestamp": 1599504520.525,
  98. "category": "sentry.event",
  99. "event_id": "9a7181e42bec4b17966f1347c93d4879",
  100. "level": "error",
  101. "message": "Error: Error with context"
  102. }
  103. ],
  104. "request": {
  105. "url": "http://localhost:4201/",
  106. "headers": {
  107. "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0"
  108. }
  109. }
  110. }