n-plus-one-in-django-new-view.json 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. {
  2. "event_id": "47829ecde95d42ac843f24592b7b7e46",
  3. "datetime": "2022-08-31T14:53:43.393462+00:00",
  4. "culprit": "/books/new",
  5. "environment": "production",
  6. "location": "/books/new",
  7. "spans": [
  8. {
  9. "timestamp": 1661957623.393161,
  10. "start_timestamp": 1661957619.183045,
  11. "exclusive_time": 0.291109,
  12. "description": "django.middleware.security.SecurityMiddleware.__call__",
  13. "op": "django.middleware",
  14. "span_id": "8eef3b67bce8f9cf",
  15. "parent_span_id": "9ca09a3af5e0cd92",
  16. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  17. "tags": {
  18. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  19. "django.middleware_name": "django.middleware.security.SecurityMiddleware"
  20. },
  21. "hash": "0f43fb6f6e01ca52",
  22. "same_process_as_parent": true
  23. },
  24. {
  25. "timestamp": 1661957623.392925,
  26. "start_timestamp": 1661957619.1831,
  27. "exclusive_time": 0.928163,
  28. "description": "django.contrib.sessions.middleware.SessionMiddleware.__call__",
  29. "op": "django.middleware",
  30. "span_id": "903aa226e55bc607",
  31. "parent_span_id": "8eef3b67bce8f9cf",
  32. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  33. "tags": {
  34. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  35. "django.middleware_name": "django.contrib.sessions.middleware.SessionMiddleware"
  36. },
  37. "hash": "3dc5dd68b38e1730",
  38. "same_process_as_parent": true
  39. },
  40. {
  41. "timestamp": 1661957623.392854,
  42. "start_timestamp": 1661957619.183957,
  43. "exclusive_time": 0.700951,
  44. "description": "django.middleware.common.CommonMiddleware.__call__",
  45. "op": "django.middleware",
  46. "span_id": "8123c1f5094d1163",
  47. "parent_span_id": "903aa226e55bc607",
  48. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  49. "tags": {
  50. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  51. "django.middleware_name": "django.middleware.common.CommonMiddleware"
  52. },
  53. "hash": "424c6ae1641f0f0e",
  54. "same_process_as_parent": true
  55. },
  56. {
  57. "timestamp": 1661957623.392803,
  58. "start_timestamp": 1661957619.184607,
  59. "exclusive_time": 0.078917,
  60. "description": "django.middleware.csrf.CsrfViewMiddleware.__call__",
  61. "op": "django.middleware",
  62. "span_id": "87b76e90daabd2fc",
  63. "parent_span_id": "8123c1f5094d1163",
  64. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  65. "tags": {
  66. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  67. "django.middleware_name": "django.middleware.csrf.CsrfViewMiddleware"
  68. },
  69. "hash": "d5da18d7274b34a1",
  70. "same_process_as_parent": true
  71. },
  72. {
  73. "timestamp": 1661957623.392784,
  74. "start_timestamp": 1661957619.184667,
  75. "exclusive_time": 0.144005,
  76. "description": "django.contrib.auth.middleware.AuthenticationMiddleware.__call__",
  77. "op": "django.middleware",
  78. "span_id": "82bb32713b8ffb1c",
  79. "parent_span_id": "87b76e90daabd2fc",
  80. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  81. "tags": {
  82. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  83. "django.middleware_name": "django.contrib.auth.middleware.AuthenticationMiddleware"
  84. },
  85. "hash": "ac72fc0a4f5fe381",
  86. "same_process_as_parent": true
  87. },
  88. {
  89. "timestamp": 1661957623.392689,
  90. "start_timestamp": 1661957619.184716,
  91. "exclusive_time": 3.510952,
  92. "description": "django.contrib.messages.middleware.MessageMiddleware.__call__",
  93. "op": "django.middleware",
  94. "span_id": "9971e680d1a74601",
  95. "parent_span_id": "82bb32713b8ffb1c",
  96. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  97. "tags": {
  98. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  99. "django.middleware_name": "django.contrib.messages.middleware.MessageMiddleware"
  100. },
  101. "hash": "ac1468d8e11a0553",
  102. "same_process_as_parent": true
  103. },
  104. {
  105. "timestamp": 1661957623.392616,
  106. "start_timestamp": 1661957619.188154,
  107. "exclusive_time": 0.347376,
  108. "description": "django.middleware.clickjacking.XFrameOptionsMiddleware.__call__",
  109. "op": "django.middleware",
  110. "span_id": "b5b3eddb45429c8d",
  111. "parent_span_id": "9971e680d1a74601",
  112. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  113. "tags": {
  114. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  115. "django.middleware_name": "django.middleware.clickjacking.XFrameOptionsMiddleware"
  116. },
  117. "hash": "d8681423cab4275f",
  118. "same_process_as_parent": true
  119. },
  120. {
  121. "timestamp": 1661957619.1883,
  122. "start_timestamp": 1661957619.188285,
  123. "exclusive_time": 0.014782,
  124. "description": "django.middleware.csrf.CsrfViewMiddleware.process_view",
  125. "op": "django.middleware",
  126. "span_id": "a559c9b71b3972bf",
  127. "parent_span_id": "b5b3eddb45429c8d",
  128. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  129. "tags": {
  130. "django.function_name": "django.middleware.csrf.CsrfViewMiddleware.process_view",
  131. "django.middleware_name": "django.middleware.csrf.CsrfViewMiddleware"
  132. },
  133. "hash": "e853d2eb7fb9ebb0",
  134. "same_process_as_parent": true
  135. },
  136. {
  137. "timestamp": 1661957623.392504,
  138. "start_timestamp": 1661957619.188404,
  139. "exclusive_time": 34.817932,
  140. "description": "new",
  141. "op": "django.view",
  142. "span_id": "86d3f8a7e85d7324",
  143. "parent_span_id": "b5b3eddb45429c8d",
  144. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  145. "hash": "22af645d1859cb5c",
  146. "same_process_as_parent": true
  147. },
  148. {
  149. "timestamp": 1661957620.963074,
  150. "start_timestamp": 1661957619.189688,
  151. "exclusive_time": 1442.054749,
  152. "description": "connect",
  153. "op": "db",
  154. "span_id": "ab6c7350134d1eec",
  155. "parent_span_id": "86d3f8a7e85d7324",
  156. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  157. "hash": "b640a0ce465fa2a4",
  158. "same_process_as_parent": true
  159. },
  160. {
  161. "timestamp": 1661957620.795072,
  162. "start_timestamp": 1661957620.630262,
  163. "exclusive_time": 164.81018,
  164. "description": "\n SELECT VERSION(),\n @@sql_mode,\n @@default_storage_engine,\n @@sql_auto_is_null,\n @@lower_case_table_names,\n CONVERT_TZ('2001-01-01 01:00:00', 'UTC', 'UTC') IS NOT NULL\n ",
  165. "op": "db",
  166. "span_id": "86701746e76f2f16",
  167. "parent_span_id": "ab6c7350134d1eec",
  168. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  169. "hash": "3a91b85ea92a26b9",
  170. "same_process_as_parent": true
  171. },
  172. {
  173. "timestamp": 1661957620.962568,
  174. "start_timestamp": 1661957620.796047,
  175. "exclusive_time": 166.521072,
  176. "description": "SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED",
  177. "op": "db",
  178. "span_id": "a56e6d47e0e91141",
  179. "parent_span_id": "ab6c7350134d1eec",
  180. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  181. "hash": "061710eb39a66089",
  182. "same_process_as_parent": true
  183. },
  184. {
  185. "timestamp": 1661957621.286672,
  186. "start_timestamp": 1661957620.963648,
  187. "exclusive_time": 323.024035,
  188. "description": "SELECT `books_book`.`id`, `books_book`.`title`, `books_book`.`author_id` FROM `books_book` ORDER BY `books_book`.`id` DESC LIMIT 10",
  189. "op": "db",
  190. "span_id": "bc1f71fd71c8f594",
  191. "parent_span_id": "86d3f8a7e85d7324",
  192. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  193. "hash": "858fea692d4d93e8",
  194. "same_process_as_parent": true
  195. },
  196. {
  197. "timestamp": 1661957621.453721,
  198. "start_timestamp": 1661957621.289976,
  199. "exclusive_time": 163.745165,
  200. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  201. "op": "db",
  202. "span_id": "b150bdaa43ddec7c",
  203. "parent_span_id": "86d3f8a7e85d7324",
  204. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  205. "hash": "63f1e89e6a073441",
  206. "same_process_as_parent": true
  207. },
  208. {
  209. "timestamp": 1661957621.679301,
  210. "start_timestamp": 1661957621.456593,
  211. "exclusive_time": 222.707987,
  212. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  213. "op": "db",
  214. "span_id": "968fdbd8bca7f2f6",
  215. "parent_span_id": "86d3f8a7e85d7324",
  216. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  217. "hash": "63f1e89e6a073441",
  218. "same_process_as_parent": true
  219. },
  220. {
  221. "timestamp": 1661957621.849921,
  222. "start_timestamp": 1661957621.682341,
  223. "exclusive_time": 167.57989,
  224. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  225. "op": "db",
  226. "span_id": "b2d1eddd591d84ba",
  227. "parent_span_id": "86d3f8a7e85d7324",
  228. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  229. "hash": "63f1e89e6a073441",
  230. "same_process_as_parent": true
  231. },
  232. {
  233. "timestamp": 1661957622.020631,
  234. "start_timestamp": 1661957621.852634,
  235. "exclusive_time": 167.997121,
  236. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  237. "op": "db",
  238. "span_id": "ae40cc8427bd68d2",
  239. "parent_span_id": "86d3f8a7e85d7324",
  240. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  241. "hash": "63f1e89e6a073441",
  242. "same_process_as_parent": true
  243. },
  244. {
  245. "timestamp": 1661957622.337579,
  246. "start_timestamp": 1661957622.023377,
  247. "exclusive_time": 314.20207,
  248. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  249. "op": "db",
  250. "span_id": "9e902554055d3477",
  251. "parent_span_id": "86d3f8a7e85d7324",
  252. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  253. "hash": "63f1e89e6a073441",
  254. "same_process_as_parent": true
  255. },
  256. {
  257. "timestamp": 1661957622.509795,
  258. "start_timestamp": 1661957622.342078,
  259. "exclusive_time": 167.71698,
  260. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  261. "op": "db",
  262. "span_id": "90302ecea560be76",
  263. "parent_span_id": "86d3f8a7e85d7324",
  264. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  265. "hash": "63f1e89e6a073441",
  266. "same_process_as_parent": true
  267. },
  268. {
  269. "timestamp": 1661957622.733698,
  270. "start_timestamp": 1661957622.513375,
  271. "exclusive_time": 220.322848,
  272. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  273. "op": "db",
  274. "span_id": "a75f1cec8d07106f",
  275. "parent_span_id": "86d3f8a7e85d7324",
  276. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  277. "hash": "63f1e89e6a073441",
  278. "same_process_as_parent": true
  279. },
  280. {
  281. "timestamp": 1661957622.903231,
  282. "start_timestamp": 1661957622.73603,
  283. "exclusive_time": 167.200804,
  284. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  285. "op": "db",
  286. "span_id": "8af15a555f92701e",
  287. "parent_span_id": "86d3f8a7e85d7324",
  288. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  289. "hash": "63f1e89e6a073441",
  290. "same_process_as_parent": true
  291. },
  292. {
  293. "timestamp": 1661957623.072045,
  294. "start_timestamp": 1661957622.906652,
  295. "exclusive_time": 165.393114,
  296. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  297. "op": "db",
  298. "span_id": "9c3a569621230f03",
  299. "parent_span_id": "86d3f8a7e85d7324",
  300. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  301. "hash": "63f1e89e6a073441",
  302. "same_process_as_parent": true
  303. },
  304. {
  305. "timestamp": 1661957623.391001,
  306. "start_timestamp": 1661957623.074995,
  307. "exclusive_time": 316.005946,
  308. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  309. "op": "db",
  310. "span_id": "8788fb3fc43ad948",
  311. "parent_span_id": "86d3f8a7e85d7324",
  312. "trace_id": "a5c94c91f0a248d19e5068ca6acc8afe",
  313. "hash": "63f1e89e6a073441",
  314. "same_process_as_parent": true
  315. }
  316. ],
  317. "start_timestamp": 1661957619.181783,
  318. "timestamp": 1661957623.393462,
  319. "title": "/books/new",
  320. "transaction": "/books/new",
  321. "transaction_info": {"source": "route"},
  322. "type": "transaction"
  323. }