django_fingerprint.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "level": "error",
  3. "exception": {
  4. "values": [
  5. {
  6. "module": null,
  7. "type": "Exception",
  8. "value": "something 9",
  9. "mechanism": null,
  10. "stacktrace": {
  11. "frames": [
  12. {
  13. "filename": "errors/views.py",
  14. "abs_path": "/code/errors/views.py",
  15. "function": "get",
  16. "module": "errors.views",
  17. "lineno": 91,
  18. "pre_context": [
  19. " 0 / 0",
  20. "",
  21. "class FingerprintView(View):",
  22. " def get(self, request, *args, **kwargs):",
  23. " try:"
  24. ],
  25. "context_line": " raise Exception(\"something %s\" % randrange(10))",
  26. "post_context": [
  27. " except Exception as err:",
  28. " with push_scope() as scope:",
  29. " scope.fingerprint = [\"foo\"]",
  30. " capture_exception(err)",
  31. " return HttpResponse(\"Ok\")"
  32. ],
  33. "vars": {
  34. "self": "<errors.views.FingerprintView object at 0x7fdb827a69b0>",
  35. "request": "<WSGIRequest: GET '/fingerprint/'>",
  36. "args": [],
  37. "kwargs": {},
  38. "err": "Exception('something 9')",
  39. "scope": "<Scope id=0x7fdb827bb5e0 name=wsgi>"
  40. },
  41. "in_app": true
  42. }
  43. ]
  44. }
  45. }
  46. ]
  47. },
  48. "event_id": "3ae3fd09af864ff2b47b5660ffdd2335",
  49. "timestamp": "2022-08-26T01:04:11.691403Z",
  50. "breadcrumbs": { "values": [] },
  51. "transaction": "/fingerprint/",
  52. "transaction_info": { "source": "route" },
  53. "fingerprint": ["foo"],
  54. "contexts": {
  55. "trace": {
  56. "trace_id": "c5092e5166294f92a45c85400396415e",
  57. "span_id": "b12138ae837c101f",
  58. "parent_span_id": "b7bf9900011a3876",
  59. "op": "django.view",
  60. "description": "fingerprint"
  61. },
  62. "runtime": {
  63. "name": "CPython",
  64. "version": "3.10.6",
  65. "build": "3.10.6 (main, Aug 3 2022, 10:24:07) [GCC 10.2.1 20210110]"
  66. }
  67. },
  68. "modules": {
  69. "django": "3.2.15",
  70. "ipython-genutils": "0.2.0"
  71. },
  72. "extra": { "sys.argv": ["./manage.py", "runserver", "0.0.0.0:8001"] },
  73. "request": {
  74. "url": "http://localhost:8001/fingerprint/",
  75. "query_string": "",
  76. "method": "GET",
  77. "env": { "SERVER_NAME": "0242d0b0a287", "SERVER_PORT": "8001" },
  78. "headers": {
  79. "Content-Length": "",
  80. "Content-Type": "text/plain",
  81. "Host": "localhost:8001",
  82. "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0",
  83. "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
  84. "Accept-Language": "en-US,en;q=0.5",
  85. "Accept-Encoding": "gzip, deflate, br",
  86. "Referer": "http://localhost:8001/",
  87. "Connection": "keep-alive",
  88. "Cookie": "",
  89. "Upgrade-Insecure-Requests": "1",
  90. "Sec-Fetch-Dest": "document",
  91. "Sec-Fetch-Mode": "navigate",
  92. "Sec-Fetch-Site": "same-origin",
  93. "Dnt": "1",
  94. "Sec-Gpc": "1"
  95. }
  96. },
  97. "environment": "production",
  98. "server_name": "0242d0b0a287",
  99. "sdk": {
  100. "name": "sentry.python",
  101. "version": "1.9.5",
  102. "packages": [{ "name": "pypi:sentry-sdk", "version": "1.9.5" }],
  103. "integrations": [
  104. "argv",
  105. "atexit",
  106. "dedupe",
  107. "django",
  108. "excepthook",
  109. "logging",
  110. "modules",
  111. "redis",
  112. "stdlib",
  113. "threading"
  114. ]
  115. },
  116. "platform": "python",
  117. "_meta": {
  118. "request": {
  119. "headers": { "Cookie": { "": { "rem": [["!config", "x", 0, 464]] } } }
  120. }
  121. }
  122. }