go_file_not_found.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "eventID": "af536c31b68a473f97e579507ce155e3",
  3. "dist": null,
  4. "userReport": null,
  5. "projectID": "1",
  6. "previousEventID": null,
  7. "message": "main *os.PathError open ./test.txt: no such file or directory file-not-found.go main in main",
  8. "id": "2109",
  9. "size": 1711,
  10. "errors": [],
  11. "culprit": "main in main",
  12. "title": "*os.PathError: open ./test.txt: no such file or directory",
  13. "platform": "go",
  14. "location": "file-not-found.go",
  15. "nextEventID": null,
  16. "type": "error",
  17. "metadata": {
  18. "function": "main",
  19. "type": "*os.PathError",
  20. "value": "open ./test.txt: no such file or directory",
  21. "filename": "file-not-found.go"
  22. },
  23. "groupingConfig": { "id": "legacy:2019-03-12" },
  24. "crashFile": null,
  25. "tags": [
  26. { "value": "error", "key": "level", "_meta": null },
  27. { "value": "linux", "key": "os.name", "_meta": null },
  28. { "value": "go go1.12.17", "key": "runtime", "_meta": null },
  29. { "value": "go", "key": "runtime.name", "_meta": null },
  30. { "value": "7337a9a27ac6", "key": "server_name", "_meta": null }
  31. ],
  32. "dateCreated": "2020-04-25T19:36:56.585Z",
  33. "dateReceived": "2020-04-25T19:37:18.738Z",
  34. "user": null,
  35. "entries": [
  36. {
  37. "type": "exception",
  38. "data": {
  39. "values": [
  40. {
  41. "stacktrace": {
  42. "frames": [
  43. {
  44. "function": "main",
  45. "colNo": null,
  46. "vars": null,
  47. "symbol": null,
  48. "module": "main",
  49. "lineNo": 25,
  50. "trust": null,
  51. "errors": null,
  52. "package": null,
  53. "absPath": "/app/file-not-found/file-not-found.go",
  54. "inApp": false,
  55. "instructionAddr": null,
  56. "filename": "file-not-found.go",
  57. "platform": null,
  58. "context": [
  59. [20, ""],
  60. [21, "\tdefer sentry.Flush(2 * time.Second)"],
  61. [22, ""],
  62. [23, "\tf, err := os.Open(\"./test.txt\")"],
  63. [24, "\tif err != nil {"],
  64. [25, "\t\tsentry.CaptureException(err)"],
  65. [26, "\t\tlog.Printf(\"reported to Sentry: %s\", err)"],
  66. [27, "\t\treturn"],
  67. [28, "\t}"],
  68. [29, "\tfmt.Println(f.Name(), \"opened successfully\")"],
  69. [30, "}"]
  70. ],
  71. "symbolAddr": null
  72. }
  73. ],
  74. "framesOmitted": null,
  75. "registers": null,
  76. "hasSystemFrames": false
  77. },
  78. "module": null,
  79. "rawStacktrace": null,
  80. "mechanism": null,
  81. "threadId": null,
  82. "value": "open ./test.txt: no such file or directory",
  83. "type": "*os.PathError"
  84. }
  85. ],
  86. "excOmitted": null,
  87. "hasSystemFrames": false
  88. }
  89. }
  90. ],
  91. "packages": {},
  92. "sdk": {
  93. "version": "0.6.0",
  94. "name": "sentry.go",
  95. "upstream": { "url": null, "isNewer": false, "name": "sentry.go" }
  96. },
  97. "_meta": {
  98. "user": null,
  99. "context": null,
  100. "entries": {},
  101. "contexts": null,
  102. "message": null,
  103. "packages": null,
  104. "tags": {},
  105. "sdk": null
  106. },
  107. "contexts": {
  108. "device": { "arch": "amd64", "num_cpu": 8, "type": "device" },
  109. "runtime": {
  110. "name": "go",
  111. "go_numcgocalls": 1,
  112. "go_numroutines": 2,
  113. "version": "go1.12.17",
  114. "go_maxprocs": 8,
  115. "type": "runtime"
  116. },
  117. "os": { "type": "os", "name": "linux" }
  118. },
  119. "fingerprints": ["2681fe170890b8ab286bb30696e5bc0f"],
  120. "context": {},
  121. "release": null,
  122. "groupID": "58"
  123. }