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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. {
  2. "event_id": "da78af6000a6400aaa87cf6e14ddeb40",
  3. "datetime": "2022-08-31T14:57:53.995835+00:00",
  4. "culprit": "/books/",
  5. "environment": "production",
  6. "location": "/books/",
  7. "contexts": {
  8. "trace": {
  9. "trace_id": "10d0b72df0fe4392a6788bce71ec2028",
  10. "span_id": "1756e116945a4360",
  11. "parent_span_id": "d71f841b69164c33",
  12. "op": "http.server",
  13. "status": "ok",
  14. "type": "trace"
  15. }
  16. },
  17. "spans": [
  18. {
  19. "timestamp": 1661957873.995433,
  20. "start_timestamp": 1661957869.628498,
  21. "exclusive_time": 0.129223,
  22. "description": "django.middleware.security.SecurityMiddleware.__call__",
  23. "op": "django.middleware",
  24. "span_id": "97b250f72d59f230",
  25. "parent_span_id": "adecc71b05091633",
  26. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  27. "tags": {
  28. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  29. "django.middleware_name": "django.middleware.security.SecurityMiddleware"
  30. },
  31. "hash": "0f43fb6f6e01ca52",
  32. "same_process_as_parent": true
  33. },
  34. {
  35. "timestamp": 1661957873.995365,
  36. "start_timestamp": 1661957869.628559,
  37. "exclusive_time": 0.149727,
  38. "description": "django.contrib.sessions.middleware.SessionMiddleware.__call__",
  39. "op": "django.middleware",
  40. "span_id": "8036c3b6cbee46a9",
  41. "parent_span_id": "97b250f72d59f230",
  42. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  43. "tags": {
  44. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  45. "django.middleware_name": "django.contrib.sessions.middleware.SessionMiddleware"
  46. },
  47. "hash": "3dc5dd68b38e1730",
  48. "same_process_as_parent": true
  49. },
  50. {
  51. "timestamp": 1661957873.99531,
  52. "start_timestamp": 1661957869.628654,
  53. "exclusive_time": 0.163079,
  54. "description": "django.middleware.common.CommonMiddleware.__call__",
  55. "op": "django.middleware",
  56. "span_id": "8cffaf9d9d2085da",
  57. "parent_span_id": "8036c3b6cbee46a9",
  58. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  59. "tags": {
  60. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  61. "django.middleware_name": "django.middleware.common.CommonMiddleware"
  62. },
  63. "hash": "424c6ae1641f0f0e",
  64. "same_process_as_parent": true
  65. },
  66. {
  67. "timestamp": 1661957873.995261,
  68. "start_timestamp": 1661957869.628768,
  69. "exclusive_time": 0.087976,
  70. "description": "django.middleware.csrf.CsrfViewMiddleware.__call__",
  71. "op": "django.middleware",
  72. "span_id": "852d1fb01c3df4f3",
  73. "parent_span_id": "8cffaf9d9d2085da",
  74. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  75. "tags": {
  76. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  77. "django.middleware_name": "django.middleware.csrf.CsrfViewMiddleware"
  78. },
  79. "hash": "d5da18d7274b34a1",
  80. "same_process_as_parent": true
  81. },
  82. {
  83. "timestamp": 1661957873.995238,
  84. "start_timestamp": 1661957869.628833,
  85. "exclusive_time": 0.069141,
  86. "description": "django.contrib.auth.middleware.AuthenticationMiddleware.__call__",
  87. "op": "django.middleware",
  88. "span_id": "9b5ca86add2c1a77",
  89. "parent_span_id": "852d1fb01c3df4f3",
  90. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  91. "tags": {
  92. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  93. "django.middleware_name": "django.contrib.auth.middleware.AuthenticationMiddleware"
  94. },
  95. "hash": "ac72fc0a4f5fe381",
  96. "same_process_as_parent": true
  97. },
  98. {
  99. "timestamp": 1661957873.995221,
  100. "start_timestamp": 1661957869.628885,
  101. "exclusive_time": 0.172854,
  102. "description": "django.contrib.messages.middleware.MessageMiddleware.__call__",
  103. "op": "django.middleware",
  104. "span_id": "b66385cad8e05d12",
  105. "parent_span_id": "9b5ca86add2c1a77",
  106. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  107. "tags": {
  108. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  109. "django.middleware_name": "django.contrib.messages.middleware.MessageMiddleware"
  110. },
  111. "hash": "ac1468d8e11a0553",
  112. "same_process_as_parent": true
  113. },
  114. {
  115. "timestamp": 1661957873.995151,
  116. "start_timestamp": 1661957869.628988,
  117. "exclusive_time": 0.289201,
  118. "description": "django.middleware.clickjacking.XFrameOptionsMiddleware.__call__",
  119. "op": "django.middleware",
  120. "span_id": "9d95a06d2ca3ca0a",
  121. "parent_span_id": "b66385cad8e05d12",
  122. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  123. "tags": {
  124. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  125. "django.middleware_name": "django.middleware.clickjacking.XFrameOptionsMiddleware"
  126. },
  127. "hash": "d8681423cab4275f",
  128. "same_process_as_parent": true
  129. },
  130. {
  131. "timestamp": 1661957869.629113,
  132. "start_timestamp": 1661957869.629101,
  133. "exclusive_time": 0.011921,
  134. "description": "django.middleware.csrf.CsrfViewMiddleware.process_view",
  135. "op": "django.middleware",
  136. "span_id": "9cd865428b72dc0e",
  137. "parent_span_id": "9d95a06d2ca3ca0a",
  138. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  139. "tags": {
  140. "django.function_name": "django.middleware.csrf.CsrfViewMiddleware.process_view",
  141. "django.middleware_name": "django.middleware.csrf.CsrfViewMiddleware"
  142. },
  143. "hash": "e853d2eb7fb9ebb0",
  144. "same_process_as_parent": true
  145. },
  146. {
  147. "timestamp": 1661957873.995039,
  148. "start_timestamp": 1661957869.629177,
  149. "exclusive_time": 34.107923,
  150. "description": "index",
  151. "op": "django.view",
  152. "span_id": "8dd7a5869a4f4583",
  153. "parent_span_id": "9d95a06d2ca3ca0a",
  154. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  155. "hash": "6a992d5529f459a4",
  156. "same_process_as_parent": true
  157. },
  158. {
  159. "timestamp": 1661957871.585034,
  160. "start_timestamp": 1661957869.629686,
  161. "exclusive_time": 1620.908975,
  162. "description": "connect",
  163. "op": "db",
  164. "span_id": "82428e8ef4c5a539",
  165. "parent_span_id": "8dd7a5869a4f4583",
  166. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  167. "hash": "b640a0ce465fa2a4",
  168. "same_process_as_parent": true
  169. },
  170. {
  171. "timestamp": 1661959871.418989,
  172. "start_timestamp": 1661957871.249481,
  173. "exclusive_time": 169.507981,
  174. "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 ",
  175. "op": "db",
  176. "span_id": "b33db57efd994615",
  177. "parent_span_id": "82428e8ef4c5a539",
  178. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  179. "hash": "3a91b85ea92a26b9",
  180. "same_process_as_parent": true
  181. },
  182. {
  183. "timestamp": 1661957871.58474,
  184. "start_timestamp": 1661957871.419809,
  185. "exclusive_time": 164.93082,
  186. "description": "SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED",
  187. "op": "db",
  188. "span_id": "aae50fb6aa040c31",
  189. "parent_span_id": "82428e8ef4c5a539",
  190. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  191. "hash": "061710eb39a66089",
  192. "same_process_as_parent": true
  193. },
  194. {
  195. "timestamp": 1661957871.899103,
  196. "start_timestamp": 1661957871.58556,
  197. "exclusive_time": 313.542843,
  198. "description": "SELECT `books_book`.`id`, `books_book`.`title`, `books_book`.`author_id` FROM `books_book` LIMIT 10",
  199. "op": "db",
  200. "span_id": "9179e43ae844b174",
  201. "parent_span_id": "8dd7a5869a4f4583",
  202. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  203. "hash": "c23d7b23e98a04c5",
  204. "same_process_as_parent": true
  205. },
  206. {
  207. "timestamp": 1661957872.07855,
  208. "start_timestamp": 1661957871.904139,
  209. "exclusive_time": 174.411059,
  210. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  211. "op": "db",
  212. "span_id": "b8be6138369491dd",
  213. "parent_span_id": "8dd7a5869a4f4583",
  214. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  215. "hash": "63f1e89e6a073441",
  216. "same_process_as_parent": true
  217. },
  218. {
  219. "timestamp": 1661957872.29085,
  220. "start_timestamp": 1661957872.082648,
  221. "exclusive_time": 208.201886,
  222. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  223. "op": "db",
  224. "span_id": "b2d4826e7b618f1b",
  225. "parent_span_id": "8dd7a5869a4f4583",
  226. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  227. "hash": "63f1e89e6a073441",
  228. "same_process_as_parent": true
  229. },
  230. {
  231. "timestamp": 1661957872.46439,
  232. "start_timestamp": 1661957872.293635,
  233. "exclusive_time": 170.755148,
  234. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  235. "op": "db",
  236. "span_id": "b3fdeea42536dbf1",
  237. "parent_span_id": "8dd7a5869a4f4583",
  238. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  239. "hash": "63f1e89e6a073441",
  240. "same_process_as_parent": true
  241. },
  242. {
  243. "timestamp": 1661957872.637623,
  244. "start_timestamp": 1661957872.467851,
  245. "exclusive_time": 169.772148,
  246. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  247. "op": "db",
  248. "span_id": "b409e78a092e642f",
  249. "parent_span_id": "8dd7a5869a4f4583",
  250. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  251. "hash": "63f1e89e6a073441",
  252. "same_process_as_parent": true
  253. },
  254. {
  255. "timestamp": 1661957872.948552,
  256. "start_timestamp": 1661957872.640274,
  257. "exclusive_time": 308.277846,
  258. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  259. "op": "db",
  260. "span_id": "86d2ede57bbf48d4",
  261. "parent_span_id": "8dd7a5869a4f4583",
  262. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  263. "hash": "63f1e89e6a073441",
  264. "same_process_as_parent": true
  265. },
  266. {
  267. "timestamp": 1661957873.123204,
  268. "start_timestamp": 1661957872.952221,
  269. "exclusive_time": 170.983076,
  270. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  271. "op": "db",
  272. "span_id": "8e554c84cdc9731e",
  273. "parent_span_id": "8dd7a5869a4f4583",
  274. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  275. "hash": "63f1e89e6a073441",
  276. "same_process_as_parent": true
  277. },
  278. {
  279. "timestamp": 1661957873.338406,
  280. "start_timestamp": 1661957873.126251,
  281. "exclusive_time": 212.155103,
  282. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  283. "op": "db",
  284. "span_id": "94d6230f3f910e12",
  285. "parent_span_id": "8dd7a5869a4f4583",
  286. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  287. "hash": "63f1e89e6a073441",
  288. "same_process_as_parent": true
  289. },
  290. {
  291. "timestamp": 1661957873.509047,
  292. "start_timestamp": 1661957873.340917,
  293. "exclusive_time": 168.129921,
  294. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  295. "op": "db",
  296. "span_id": "a210b87a2191ceb6",
  297. "parent_span_id": "8dd7a5869a4f4583",
  298. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  299. "hash": "63f1e89e6a073441",
  300. "same_process_as_parent": true
  301. },
  302. {
  303. "timestamp": 1661957873.678543,
  304. "start_timestamp": 1661957873.511186,
  305. "exclusive_time": 167.357206,
  306. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  307. "op": "db",
  308. "span_id": "88a5ccaf25b9bd8f",
  309. "parent_span_id": "8dd7a5869a4f4583",
  310. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  311. "hash": "63f1e89e6a073441",
  312. "same_process_as_parent": true
  313. },
  314. {
  315. "timestamp": 1661957873.993492,
  316. "start_timestamp": 1661957873.680672,
  317. "exclusive_time": 312.819958,
  318. "description": "SELECT `books_author`.`id`, `books_author`.`name` FROM `books_author` WHERE `books_author`.`id` = %s LIMIT 21",
  319. "op": "db",
  320. "span_id": "bb32cf50fc56b296",
  321. "parent_span_id": "8dd7a5869a4f4583",
  322. "trace_id": "3c080d683c904cb68a18361a093aa6ce",
  323. "hash": "63f1e89e6a073441",
  324. "same_process_as_parent": true
  325. }
  326. ],
  327. "start_timestamp": 1661957869.624976,
  328. "timestamp": 1661957873.995835,
  329. "title": "/books/",
  330. "transaction": "/books/",
  331. "transaction_info": {"source": "route"},
  332. "type": "transaction"
  333. }