python_logging.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. {
  2. "level": "warning",
  3. "logger": "errors.views",
  4. "logentry": { "message": "This is a warning: %s", "params": ["warning"] },
  5. "extra": { "sys.argv": ["./manage.py", "runserver", "0.0.0.0:8001"] },
  6. "event_id": "d2e68809a8524be4b1a1d314a1f159ec",
  7. "timestamp": "2022-02-16T16:03:21.363647Z",
  8. "breadcrumbs": {
  9. "values": [
  10. {
  11. "type": "log",
  12. "level": "warning",
  13. "category": "errors.views",
  14. "message": "This is a warning",
  15. "timestamp": "2022-02-16T16:03:21.362913Z",
  16. "data": {}
  17. }
  18. ]
  19. },
  20. "transaction": "/logger-warning/",
  21. "contexts": {
  22. "trace": {
  23. "trace_id": "94cb880c05a64d24830b7b965a3f252b",
  24. "span_id": "a1bd762572798358",
  25. "parent_span_id": "8975a24136cb2cd8",
  26. "op": "django.view",
  27. "description": "logger-warning"
  28. },
  29. "runtime": {
  30. "name": "CPython",
  31. "version": "3.10.1",
  32. "build": "3.10.1 (main, Dec 21 2021, 09:17:12) [GCC 10.2.1 20210110]"
  33. }
  34. },
  35. "modules": {
  36. "wheel": "0.37.0",
  37. "webencodings": "0.5.1",
  38. "wcwidth": "0.2.5",
  39. "virtualenv": "20.13.0",
  40. "urllib3": "1.26.8",
  41. "typed-ast": "1.5.1",
  42. "traitlets": "4.3.3",
  43. "tomlkit": "0.8.0",
  44. "toml": "0.10.2",
  45. "sqlparse": "0.4.2",
  46. "six": "1.16.0",
  47. "shellingham": "1.4.0",
  48. "setuptools": "57.5.0",
  49. "sentry-sdk": "1.5.1",
  50. "secretstorage": "3.3.1",
  51. "requests": "2.27.1",
  52. "requests-toolbelt": "0.9.1",
  53. "regex": "2021.11.10",
  54. "pytz": "2021.3",
  55. "pyparsing": "3.0.6",
  56. "pylev": "1.4.0",
  57. "pygments": "2.11.2",
  58. "pycparser": "2.21",
  59. "ptyprocess": "0.7.0",
  60. "prompt-toolkit": "3.0.3",
  61. "poetry": "1.1.12",
  62. "poetry-core": "1.0.7",
  63. "platformdirs": "2.4.1",
  64. "pkginfo": "1.8.2",
  65. "pip": "21.2.4",
  66. "pickleshare": "0.7.5",
  67. "pexpect": "4.8.0",
  68. "pathspec": "0.9.0",
  69. "pastel": "0.2.1",
  70. "parso": "0.7.1",
  71. "packaging": "20.9",
  72. "msgpack": "1.0.3",
  73. "lockfile": "0.12.2",
  74. "keyring": "21.8.0",
  75. "jeepney": "0.7.1",
  76. "jedi": "0.17.2",
  77. "ipython": "7.16.2",
  78. "ipython-genutils": "0.2.0",
  79. "ipdb": "0.12.3",
  80. "idna": "3.3",
  81. "html5lib": "1.1",
  82. "filelock": "3.4.2",
  83. "django": "3.2.11",
  84. "distlib": "0.3.4",
  85. "decorator": "5.1.1",
  86. "cryptography": "36.0.1",
  87. "crashtest": "0.3.1",
  88. "clikit": "0.6.2",
  89. "click": "8.0.3",
  90. "cleo": "0.8.1",
  91. "charset-normalizer": "2.0.10",
  92. "cffi": "1.15.0",
  93. "certifi": "2021.10.8",
  94. "cachy": "0.3.0",
  95. "cachecontrol": "0.12.10",
  96. "black": "19.10b0",
  97. "backcall": "0.2.0",
  98. "attrs": "21.4.0",
  99. "asgiref": "3.4.1",
  100. "appdirs": "1.4.4"
  101. },
  102. "request": {
  103. "url": "http://localhost:8001/logger-warning/",
  104. "query_string": "",
  105. "method": "GET",
  106. "env": { "SERVER_NAME": "78b41d5b387e", "SERVER_PORT": "8001" },
  107. "headers": {
  108. "Content-Length": "",
  109. "Content-Type": "text/plain",
  110. "Host": "localhost:8001",
  111. "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0",
  112. "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
  113. "Accept-Language": "en-US,en;q=0.5",
  114. "Accept-Encoding": "gzip, deflate",
  115. "Referer": "http://localhost:8001/",
  116. "Connection": "keep-alive",
  117. "Cookie": "",
  118. "Upgrade-Insecure-Requests": "1",
  119. "Sec-Fetch-Dest": "document",
  120. "Sec-Fetch-Mode": "navigate",
  121. "Sec-Fetch-Site": "same-origin",
  122. "Dnt": "1",
  123. "Sec-Gpc": "1",
  124. "Cache-Control": "max-age=0"
  125. }
  126. },
  127. "environment": "production",
  128. "server_name": "78b41d5b387e",
  129. "sdk": {
  130. "name": "sentry.python",
  131. "version": "1.5.1",
  132. "packages": [{ "name": "pypi:sentry-sdk", "version": "1.5.1" }],
  133. "integrations": [
  134. "argv",
  135. "atexit",
  136. "dedupe",
  137. "django",
  138. "excepthook",
  139. "logging",
  140. "modules",
  141. "stdlib",
  142. "threading"
  143. ]
  144. },
  145. "platform": "python",
  146. "_meta": {
  147. "request": {
  148. "headers": { "Cookie": { "": { "rem": [["!config", "x", 0, 393]] } } }
  149. }
  150. }
  151. }