fast-n-plus-one-in-django-new-view.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. {
  2. "event_id": "6a28410a85d349bc90b7019b951b3a4d",
  3. "release": "78c744eb09a10f80fe151c9d42e10a36d3688bb1",
  4. "datetime": "2022-09-01T18:09:46.050897+00:00",
  5. "culprit": "/books/new",
  6. "environment": "production",
  7. "location": "/books/new",
  8. "spans": [
  9. {
  10. "timestamp": 1662055786.050837,
  11. "start_timestamp": 1662055786.014735,
  12. "exclusive_time": 0.104904,
  13. "description": "django.middleware.security.SecurityMiddleware.__call__",
  14. "op": "django.middleware",
  15. "span_id": "86b1efbdba517922",
  16. "parent_span_id": "8028f587d09d9517",
  17. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  18. "tags": {
  19. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  20. "django.middleware_name": "django.middleware.security.SecurityMiddleware"
  21. },
  22. "hash": "0f43fb6f6e01ca52",
  23. "same_process_as_parent": true
  24. },
  25. {
  26. "timestamp": 1662055786.050826,
  27. "start_timestamp": 1662055786.014829,
  28. "exclusive_time": 4.061221,
  29. "description": "django.contrib.sessions.middleware.SessionMiddleware.__call__",
  30. "op": "django.middleware",
  31. "span_id": "ae9faadd5dc93026",
  32. "parent_span_id": "86b1efbdba517922",
  33. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  34. "tags": {
  35. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  36. "django.middleware_name": "django.contrib.sessions.middleware.SessionMiddleware"
  37. },
  38. "hash": "3dc5dd68b38e1730",
  39. "same_process_as_parent": true
  40. },
  41. {
  42. "timestamp": 1662055786.050807,
  43. "start_timestamp": 1662055786.018871,
  44. "exclusive_time": 1.499892,
  45. "description": "django.middleware.common.CommonMiddleware.__call__",
  46. "op": "django.middleware",
  47. "span_id": "af395522d7fa5f34",
  48. "parent_span_id": "ae9faadd5dc93026",
  49. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  50. "tags": {
  51. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  52. "django.middleware_name": "django.middleware.common.CommonMiddleware"
  53. },
  54. "hash": "424c6ae1641f0f0e",
  55. "same_process_as_parent": true
  56. },
  57. {
  58. "timestamp": 1662055786.050805,
  59. "start_timestamp": 1662055786.020369,
  60. "exclusive_time": 0.068188,
  61. "description": "django.middleware.csrf.CsrfViewMiddleware.__call__",
  62. "op": "django.middleware",
  63. "span_id": "98323c622062df57",
  64. "parent_span_id": "af395522d7fa5f34",
  65. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  66. "tags": {
  67. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  68. "django.middleware_name": "django.middleware.csrf.CsrfViewMiddleware"
  69. },
  70. "hash": "d5da18d7274b34a1",
  71. "same_process_as_parent": true
  72. },
  73. {
  74. "timestamp": 1662055786.050804,
  75. "start_timestamp": 1662055786.020436,
  76. "exclusive_time": 0.052929,
  77. "description": "django.contrib.auth.middleware.AuthenticationMiddleware.__call__",
  78. "op": "django.middleware",
  79. "span_id": "a00dcaf5b4384822",
  80. "parent_span_id": "98323c622062df57",
  81. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  82. "tags": {
  83. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  84. "django.middleware_name": "django.contrib.auth.middleware.AuthenticationMiddleware"
  85. },
  86. "hash": "ac72fc0a4f5fe381",
  87. "same_process_as_parent": true
  88. },
  89. {
  90. "timestamp": 1662055786.050801,
  91. "start_timestamp": 1662055786.020486,
  92. "exclusive_time": 4.293918,
  93. "description": "django.contrib.messages.middleware.MessageMiddleware.__call__",
  94. "op": "django.middleware",
  95. "span_id": "966d9321ec56e670",
  96. "parent_span_id": "a00dcaf5b4384822",
  97. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  98. "tags": {
  99. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  100. "django.middleware_name": "django.contrib.messages.middleware.MessageMiddleware"
  101. },
  102. "hash": "ac1468d8e11a0553",
  103. "same_process_as_parent": true
  104. },
  105. {
  106. "timestamp": 1662055786.050787,
  107. "start_timestamp": 1662055786.024766,
  108. "exclusive_time": 0.218392,
  109. "description": "django.middleware.clickjacking.XFrameOptionsMiddleware.__call__",
  110. "op": "django.middleware",
  111. "span_id": "9b0ecabace26cdd9",
  112. "parent_span_id": "966d9321ec56e670",
  113. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  114. "tags": {
  115. "django.function_name": "django.utils.deprecation.MiddlewareMixin.__call__",
  116. "django.middleware_name": "django.middleware.clickjacking.XFrameOptionsMiddleware"
  117. },
  118. "hash": "d8681423cab4275f",
  119. "same_process_as_parent": true
  120. },
  121. {
  122. "timestamp": 1662055786.024916,
  123. "start_timestamp": 1662055786.024902,
  124. "exclusive_time": 0.013828,
  125. "description": "django.middleware.csrf.CsrfViewMiddleware.process_view",
  126. "op": "django.middleware",
  127. "span_id": "85c1d0a17316a683",
  128. "parent_span_id": "9b0ecabace26cdd9",
  129. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  130. "tags": {
  131. "django.function_name": "django.middleware.csrf.CsrfViewMiddleware.process_view",
  132. "django.middleware_name": "django.middleware.csrf.CsrfViewMiddleware"
  133. },
  134. "hash": "e853d2eb7fb9ebb0",
  135. "same_process_as_parent": true
  136. },
  137. {
  138. "timestamp": 1662055786.050768,
  139. "start_timestamp": 1662055786.024979,
  140. "exclusive_time": 6.288526,
  141. "description": "new",
  142. "op": "django.view",
  143. "span_id": "aaa600faadf07d6c",
  144. "parent_span_id": "9b0ecabace26cdd9",
  145. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  146. "hash": "22af645d1859cb5c",
  147. "same_process_as_parent": true
  148. },
  149. {
  150. "timestamp": 1662055786.027537,
  151. "start_timestamp": 1662055786.025951,
  152. "exclusive_time": 1.586199,
  153. "description": "connect",
  154. "op": "db",
  155. "span_id": "9fcb9a8099227e6d",
  156. "parent_span_id": "aaa600faadf07d6c",
  157. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  158. "hash": "b640a0ce465fa2a4",
  159. "same_process_as_parent": true
  160. },
  161. {
  162. "timestamp": 1662055786.028473,
  163. "start_timestamp": 1662055786.027685,
  164. "exclusive_time": 0.787974,
  165. "description": "SELECT \"books_book\".\"id\", \"books_book\".\"title\", \"books_book\".\"author_id\" FROM \"books_book\" ORDER BY \"books_book\".\"id\" DESC LIMIT 10",
  166. "op": "db",
  167. "span_id": "98b8eeec7a93eb08",
  168. "parent_span_id": "aaa600faadf07d6c",
  169. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  170. "hash": "923288cabd0bacf7",
  171. "same_process_as_parent": true
  172. },
  173. {
  174. "timestamp": 1662055786.029703,
  175. "start_timestamp": 1662055786.02961,
  176. "exclusive_time": 0.092983,
  177. "description": "SELECT \"books_author\".\"id\", \"books_author\".\"name\" FROM \"books_author\" WHERE \"books_author\".\"id\" = %s LIMIT 21",
  178. "op": "db",
  179. "span_id": "95a0e5e59603e999",
  180. "parent_span_id": "aaa600faadf07d6c",
  181. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  182. "hash": "563521aba3385bbb",
  183. "same_process_as_parent": true
  184. },
  185. {
  186. "timestamp": 1662055786.03022,
  187. "start_timestamp": 1662055786.030168,
  188. "exclusive_time": 0.051975,
  189. "description": "SELECT \"books_author\".\"id\", \"books_author\".\"name\" FROM \"books_author\" WHERE \"books_author\".\"id\" = %s LIMIT 21",
  190. "op": "db",
  191. "span_id": "a2305e313ccccc49",
  192. "parent_span_id": "aaa600faadf07d6c",
  193. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  194. "hash": "563521aba3385bbb",
  195. "same_process_as_parent": true
  196. },
  197. {
  198. "timestamp": 1662055786.046948,
  199. "start_timestamp": 1662055786.030677,
  200. "exclusive_time": 16.270876,
  201. "description": "SELECT \"books_author\".\"id\", \"books_author\".\"name\" FROM \"books_author\" WHERE \"books_author\".\"id\" = %s LIMIT 21",
  202. "op": "db",
  203. "span_id": "8986d8329b53167c",
  204. "parent_span_id": "aaa600faadf07d6c",
  205. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  206. "hash": "563521aba3385bbb",
  207. "same_process_as_parent": true
  208. },
  209. {
  210. "timestamp": 1662055786.047802,
  211. "start_timestamp": 1662055786.047687,
  212. "exclusive_time": 0.114918,
  213. "description": "SELECT \"books_author\".\"id\", \"books_author\".\"name\" FROM \"books_author\" WHERE \"books_author\".\"id\" = %s LIMIT 21",
  214. "op": "db",
  215. "span_id": "b8646209cb3eeb5f",
  216. "parent_span_id": "aaa600faadf07d6c",
  217. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  218. "hash": "563521aba3385bbb",
  219. "same_process_as_parent": true
  220. },
  221. {
  222. "timestamp": 1662055786.048263,
  223. "start_timestamp": 1662055786.048107,
  224. "exclusive_time": 0.156164,
  225. "description": "SELECT \"books_author\".\"id\", \"books_author\".\"name\" FROM \"books_author\" WHERE \"books_author\".\"id\" = %s LIMIT 21",
  226. "op": "db",
  227. "span_id": "9c07033d06aa6073",
  228. "parent_span_id": "aaa600faadf07d6c",
  229. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  230. "hash": "563521aba3385bbb",
  231. "same_process_as_parent": true
  232. },
  233. {
  234. "timestamp": 1662055786.048818,
  235. "start_timestamp": 1662055786.048729,
  236. "exclusive_time": 0.089169,
  237. "description": "SELECT \"books_author\".\"id\", \"books_author\".\"name\" FROM \"books_author\" WHERE \"books_author\".\"id\" = %s LIMIT 21",
  238. "op": "db",
  239. "span_id": "8955a3462f246c8c",
  240. "parent_span_id": "aaa600faadf07d6c",
  241. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  242. "hash": "563521aba3385bbb",
  243. "same_process_as_parent": true
  244. },
  245. {
  246. "timestamp": 1662055786.049366,
  247. "start_timestamp": 1662055786.049326,
  248. "exclusive_time": 0.040055,
  249. "description": "SELECT \"books_author\".\"id\", \"books_author\".\"name\" FROM \"books_author\" WHERE \"books_author\".\"id\" = %s LIMIT 21",
  250. "op": "db",
  251. "span_id": "971141895685aeaa",
  252. "parent_span_id": "aaa600faadf07d6c",
  253. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  254. "hash": "563521aba3385bbb",
  255. "same_process_as_parent": true
  256. },
  257. {
  258. "timestamp": 1662055786.049836,
  259. "start_timestamp": 1662055786.049606,
  260. "exclusive_time": 0.229836,
  261. "description": "SELECT \"books_author\".\"id\", \"books_author\".\"name\" FROM \"books_author\" WHERE \"books_author\".\"id\" = %s LIMIT 21",
  262. "op": "db",
  263. "span_id": "bafcafa4a788eb5f",
  264. "parent_span_id": "aaa600faadf07d6c",
  265. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  266. "hash": "563521aba3385bbb",
  267. "same_process_as_parent": true
  268. },
  269. {
  270. "timestamp": 1662055786.050115,
  271. "start_timestamp": 1662055786.050072,
  272. "exclusive_time": 0.043154,
  273. "description": "SELECT \"books_author\".\"id\", \"books_author\".\"name\" FROM \"books_author\" WHERE \"books_author\".\"id\" = %s LIMIT 21",
  274. "op": "db",
  275. "span_id": "a498b44f3757fed1",
  276. "parent_span_id": "aaa600faadf07d6c",
  277. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  278. "hash": "563521aba3385bbb",
  279. "same_process_as_parent": true
  280. },
  281. {
  282. "timestamp": 1662055786.050426,
  283. "start_timestamp": 1662055786.050389,
  284. "exclusive_time": 0.036955,
  285. "description": "SELECT \"books_author\".\"id\", \"books_author\".\"name\" FROM \"books_author\" WHERE \"books_author\".\"id\" = %s LIMIT 21",
  286. "op": "db",
  287. "span_id": "87956df78fad0822",
  288. "parent_span_id": "aaa600faadf07d6c",
  289. "trace_id": "8b41bc0f48bb41d28dc876431d9d4278",
  290. "hash": "563521aba3385bbb",
  291. "same_process_as_parent": true
  292. }
  293. ],
  294. "start_timestamp": 1662055786.013604,
  295. "timestamp": 1662055786.050897,
  296. "title": "/books/new",
  297. "transaction": "/books/new",
  298. "transaction_info": {"source": "route"},
  299. "type": "transaction"
  300. }