n-plus-one-in-rails-index-view.json 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. {
  2. "event_id": "f20330b6d7b14e2aa9319c1d3b396575",
  3. "datetime": "2022-08-31T21:24:22.059543+00:00",
  4. "culprit": "BooksController#index",
  5. "environment": "development",
  6. "location": "BooksController#index",
  7. "spans": [
  8. {
  9. "timestamp": 1661981058.472871,
  10. "start_timestamp": 1661981058.24719,
  11. "exclusive_time": 225.681067,
  12. "description": "SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC",
  13. "op": "db.sql.active_record",
  14. "span_id": "3e6ae6cc66637bc9",
  15. "parent_span_id": "bcaeb5a1b27b5d9e",
  16. "trace_id": "6913189a56f64df1bf1771626f28277d",
  17. "tags": {},
  18. "data": {"connection_id": null},
  19. "hash": "b845aabae49bec51"
  20. },
  21. {
  22. "timestamp": 1661981059.164025,
  23. "start_timestamp": 1661981058.98894,
  24. "exclusive_time": 175.085068,
  25. "description": "SELECT `books_book`.* FROM `books_book` ORDER BY `books_book`.`id` ASC LIMIT 10",
  26. "op": "db.sql.active_record",
  27. "span_id": "9ca80fdadb3f54d4",
  28. "parent_span_id": "bcaeb5a1b27b5d9e",
  29. "trace_id": "6913189a56f64df1bf1771626f28277d",
  30. "tags": {},
  31. "data": {"connection_id": null},
  32. "hash": "29f8d7f99c8e2947"
  33. },
  34. {
  35. "timestamp": 1661981060.154061,
  36. "start_timestamp": 1661981059.927039,
  37. "exclusive_time": 227.022171,
  38. "description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 396 LIMIT 1",
  39. "op": "db.sql.active_record",
  40. "span_id": "d160421483be35c9",
  41. "parent_span_id": "bcaeb5a1b27b5d9e",
  42. "trace_id": "6913189a56f64df1bf1771626f28277d",
  43. "tags": {},
  44. "data": {"connection_id": null},
  45. "hash": "16e47198202001c5"
  46. },
  47. {
  48. "timestamp": 1661981060.327299,
  49. "start_timestamp": 1661981060.160391,
  50. "exclusive_time": 166.908026,
  51. "description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 168 LIMIT 1",
  52. "op": "db.sql.active_record",
  53. "span_id": "3c5fc62910827af5",
  54. "parent_span_id": "bcaeb5a1b27b5d9e",
  55. "trace_id": "6913189a56f64df1bf1771626f28277d",
  56. "tags": {},
  57. "data": {"connection_id": null},
  58. "hash": "a09da471441a8585"
  59. },
  60. {
  61. "timestamp": 1661981060.498534,
  62. "start_timestamp": 1661981060.328677,
  63. "exclusive_time": 169.857025,
  64. "description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 961 LIMIT 1",
  65. "op": "db.sql.active_record",
  66. "span_id": "070c93ade0beacf4",
  67. "parent_span_id": "bcaeb5a1b27b5d9e",
  68. "trace_id": "6913189a56f64df1bf1771626f28277d",
  69. "tags": {},
  70. "data": {"connection_id": null},
  71. "hash": "e54c1601db9f27ba"
  72. },
  73. {
  74. "timestamp": 1661981060.805213,
  75. "start_timestamp": 1661981060.507646,
  76. "exclusive_time": 297.566891,
  77. "description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 702 LIMIT 1",
  78. "op": "db.sql.active_record",
  79. "span_id": "145e0769cbc0e6e2",
  80. "parent_span_id": "bcaeb5a1b27b5d9e",
  81. "trace_id": "6913189a56f64df1bf1771626f28277d",
  82. "tags": {},
  83. "data": {"connection_id": null},
  84. "hash": "85453648706c0153"
  85. },
  86. {
  87. "timestamp": 1661981061.000331,
  88. "start_timestamp": 1661981060.806326,
  89. "exclusive_time": 194.005012,
  90. "description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 819 LIMIT 1",
  91. "op": "db.sql.active_record",
  92. "span_id": "647d3cc602221bcb",
  93. "parent_span_id": "bcaeb5a1b27b5d9e",
  94. "trace_id": "6913189a56f64df1bf1771626f28277d",
  95. "tags": {},
  96. "data": {"connection_id": null},
  97. "hash": "ae1aac2f2eba9915"
  98. },
  99. {
  100. "timestamp": 1661981061.208225,
  101. "start_timestamp": 1661981061.003691,
  102. "exclusive_time": 204.534053,
  103. "description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 444 LIMIT 1",
  104. "op": "db.sql.active_record",
  105. "span_id": "c879bf4a40c67f43",
  106. "parent_span_id": "bcaeb5a1b27b5d9e",
  107. "trace_id": "6913189a56f64df1bf1771626f28277d",
  108. "tags": {},
  109. "data": {"connection_id": null},
  110. "hash": "1cda673bbbfd9d57"
  111. },
  112. {
  113. "timestamp": 1661981061.380944,
  114. "start_timestamp": 1661981061.210743,
  115. "exclusive_time": 170.201063,
  116. "description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 684 LIMIT 1",
  117. "op": "db.sql.active_record",
  118. "span_id": "3c890fa3989bc113",
  119. "parent_span_id": "bcaeb5a1b27b5d9e",
  120. "trace_id": "6913189a56f64df1bf1771626f28277d",
  121. "tags": {},
  122. "data": {"connection_id": null},
  123. "hash": "20fd5b205b9cac94"
  124. },
  125. {
  126. "timestamp": 1661981061.551248,
  127. "start_timestamp": 1661981061.383837,
  128. "exclusive_time": 167.411089,
  129. "description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 972 LIMIT 1",
  130. "op": "db.sql.active_record",
  131. "span_id": "32f164bf31754543",
  132. "parent_span_id": "bcaeb5a1b27b5d9e",
  133. "trace_id": "6913189a56f64df1bf1771626f28277d",
  134. "tags": {},
  135. "data": {"connection_id": null},
  136. "hash": "71560bef16f7fbc7"
  137. },
  138. {
  139. "timestamp": 1661981061.854541,
  140. "start_timestamp": 1661981061.554492,
  141. "exclusive_time": 300.049067,
  142. "description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 346 LIMIT 1",
  143. "op": "db.sql.active_record",
  144. "span_id": "cba167d1c8c7f10f",
  145. "parent_span_id": "bcaeb5a1b27b5d9e",
  146. "trace_id": "6913189a56f64df1bf1771626f28277d",
  147. "tags": {},
  148. "data": {"connection_id": null},
  149. "hash": "0cb8132a0ff46e22"
  150. },
  151. {
  152. "timestamp": 1661981062.028325,
  153. "start_timestamp": 1661981061.85837,
  154. "exclusive_time": 169.955015,
  155. "description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 838 LIMIT 1",
  156. "op": "db.sql.active_record",
  157. "span_id": "28f0b84285e6d8b8",
  158. "parent_span_id": "bcaeb5a1b27b5d9e",
  159. "trace_id": "6913189a56f64df1bf1771626f28277d",
  160. "tags": {},
  161. "data": {"connection_id": null},
  162. "hash": "ca04d3ada5ab5e56"
  163. },
  164. {
  165. "timestamp": 1661981062.045249,
  166. "start_timestamp": 1661981062.043056,
  167. "exclusive_time": 2.192974,
  168. "description": "text template",
  169. "op": "template.render_template.action_view",
  170. "span_id": "f85c58dc70bdb570",
  171. "parent_span_id": "bcaeb5a1b27b5d9e",
  172. "trace_id": "6913189a56f64df1bf1771626f28277d",
  173. "tags": {},
  174. "data": {},
  175. "hash": "fd52b10094053f33"
  176. },
  177. {
  178. "timestamp": 1661981062.056264,
  179. "start_timestamp": 1661981058.515547,
  180. "exclusive_time": 3540.716886,
  181. "description": "BooksController#index",
  182. "op": "process_action.action_controller",
  183. "span_id": "365c46d8f9cb2db9",
  184. "parent_span_id": "bcaeb5a1b27b5d9e",
  185. "trace_id": "6913189a56f64df1bf1771626f28277d",
  186. "status": "ok",
  187. "tags": {},
  188. "data": {
  189. "payload": {
  190. "action": "index",
  191. "controller": "BooksController",
  192. "db_runtime": 3405.640000164509,
  193. "format": "html",
  194. "method": "GET",
  195. "params": {"action": "index", "controller": "books"},
  196. "path": "/books",
  197. "status": 200,
  198. "view_runtime": 20.920999988447875
  199. },
  200. "status_code": 200
  201. },
  202. "hash": "fa03bd0c23eb18f9"
  203. }
  204. ],
  205. "start_timestamp": 1661981056.619507,
  206. "timestamp": 1661981062.059543,
  207. "title": "BooksController#index",
  208. "transaction": "BooksController#index",
  209. "transaction_info": {"source": "unknown"},
  210. "type": "transaction"
  211. }