Files
sentinel/fixtures/events/performance_problems/n-plus-one-in-rails-index-view.json
2024-02-15 17:01:50 +00:00

212 lines
7.6 KiB
JSON

{
"event_id": "f20330b6d7b14e2aa9319c1d3b396575",
"datetime": "2022-08-31T21:24:22.059543+00:00",
"culprit": "BooksController#index",
"environment": "development",
"location": "BooksController#index",
"spans": [
{
"timestamp": 1661981058.472871,
"start_timestamp": 1661981058.24719,
"exclusive_time": 225.681067,
"description": "SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC",
"op": "db.sql.active_record",
"span_id": "3e6ae6cc66637bc9",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "b845aabae49bec51"
},
{
"timestamp": 1661981059.164025,
"start_timestamp": 1661981058.98894,
"exclusive_time": 175.085068,
"description": "SELECT `books_book`.* FROM `books_book` ORDER BY `books_book`.`id` ASC LIMIT 10",
"op": "db.sql.active_record",
"span_id": "9ca80fdadb3f54d4",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "29f8d7f99c8e2947"
},
{
"timestamp": 1661981060.154061,
"start_timestamp": 1661981059.927039,
"exclusive_time": 227.022171,
"description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 396 LIMIT 1",
"op": "db.sql.active_record",
"span_id": "d160421483be35c9",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "16e47198202001c5"
},
{
"timestamp": 1661981060.327299,
"start_timestamp": 1661981060.160391,
"exclusive_time": 166.908026,
"description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 168 LIMIT 1",
"op": "db.sql.active_record",
"span_id": "3c5fc62910827af5",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "a09da471441a8585"
},
{
"timestamp": 1661981060.498534,
"start_timestamp": 1661981060.328677,
"exclusive_time": 169.857025,
"description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 961 LIMIT 1",
"op": "db.sql.active_record",
"span_id": "070c93ade0beacf4",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "e54c1601db9f27ba"
},
{
"timestamp": 1661981060.805213,
"start_timestamp": 1661981060.507646,
"exclusive_time": 297.566891,
"description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 702 LIMIT 1",
"op": "db.sql.active_record",
"span_id": "145e0769cbc0e6e2",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "85453648706c0153"
},
{
"timestamp": 1661981061.000331,
"start_timestamp": 1661981060.806326,
"exclusive_time": 194.005012,
"description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 819 LIMIT 1",
"op": "db.sql.active_record",
"span_id": "647d3cc602221bcb",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "ae1aac2f2eba9915"
},
{
"timestamp": 1661981061.208225,
"start_timestamp": 1661981061.003691,
"exclusive_time": 204.534053,
"description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 444 LIMIT 1",
"op": "db.sql.active_record",
"span_id": "c879bf4a40c67f43",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "1cda673bbbfd9d57"
},
{
"timestamp": 1661981061.380944,
"start_timestamp": 1661981061.210743,
"exclusive_time": 170.201063,
"description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 684 LIMIT 1",
"op": "db.sql.active_record",
"span_id": "3c890fa3989bc113",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "20fd5b205b9cac94"
},
{
"timestamp": 1661981061.551248,
"start_timestamp": 1661981061.383837,
"exclusive_time": 167.411089,
"description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 972 LIMIT 1",
"op": "db.sql.active_record",
"span_id": "32f164bf31754543",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "71560bef16f7fbc7"
},
{
"timestamp": 1661981061.854541,
"start_timestamp": 1661981061.554492,
"exclusive_time": 300.049067,
"description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 346 LIMIT 1",
"op": "db.sql.active_record",
"span_id": "cba167d1c8c7f10f",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "0cb8132a0ff46e22"
},
{
"timestamp": 1661981062.028325,
"start_timestamp": 1661981061.85837,
"exclusive_time": 169.955015,
"description": "SELECT `books_author`.* FROM `books_author` WHERE `books_author`.`id` = 838 LIMIT 1",
"op": "db.sql.active_record",
"span_id": "28f0b84285e6d8b8",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {"connection_id": null},
"hash": "ca04d3ada5ab5e56"
},
{
"timestamp": 1661981062.045249,
"start_timestamp": 1661981062.043056,
"exclusive_time": 2.192974,
"description": "text template",
"op": "template.render_template.action_view",
"span_id": "f85c58dc70bdb570",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"tags": {},
"data": {},
"hash": "fd52b10094053f33"
},
{
"timestamp": 1661981062.056264,
"start_timestamp": 1661981058.515547,
"exclusive_time": 3540.716886,
"description": "BooksController#index",
"op": "process_action.action_controller",
"span_id": "365c46d8f9cb2db9",
"parent_span_id": "bcaeb5a1b27b5d9e",
"trace_id": "6913189a56f64df1bf1771626f28277d",
"status": "ok",
"tags": {},
"data": {
"payload": {
"action": "index",
"controller": "BooksController",
"db_runtime": 3405.640000164509,
"format": "html",
"http.method": "GET",
"params": {"action": "index", "controller": "books"},
"path": "/books",
"status": 200,
"view_runtime": 20.920999988447875
},
"status_code": 200
},
"hash": "fa03bd0c23eb18f9"
}
],
"start_timestamp": 1661981056.619507,
"timestamp": 1661981062.059543,
"title": "BooksController#index",
"transaction": "BooksController#index",
"transaction_info": {"source": "unknown"},
"type": "transaction"
}