Skip to content

Commit f80643c

Browse files
committed
few tweaks to display the new data
1 parent 02ae227 commit f80643c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dashboard/js/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ function populateRequestLog(requests) {
401401
<td class="${urlCellClass}" data-full-url="${r.request_url}">${r.request_url}</td>
402402
<td>${time.toFixed(3)} ms</td>
403403
<td>${r.response_code}</td>
404+
<td>${r.ip}</td>
404405
<td>${botStatus}</td>
405406
<td>
406407
<button class="btn btn-outline-primary btn-sm" type="button" data-bs-toggle="collapse"

dashboard/views/dashboard.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@
205205
<th>Request URL</th>
206206
<th>Total Time (ms)</th>
207207
<th>Response Code</th>
208+
<th>IP</th>
208209
<th>Bot</th>
209210
<th>Details</th>
210211
</tr>

src/apm/presenter/SqlitePresenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public function getRequestsData(string $threshold, int $page, int $perPage, stri
319319
$placeholders = implode(',', array_fill(0, count($paginatedRequestIds), '?'));
320320

321321
// Get the actual request data
322-
$requestQuery = "SELECT request_id, timestamp, request_url, total_time, response_code, is_bot FROM apm_requests
322+
$requestQuery = "SELECT request_id, timestamp, request_url, total_time, response_code, is_bot, ip, user_agent, host, session_id FROM apm_requests
323323
WHERE request_id IN ($placeholders) ORDER BY timestamp DESC";
324324
$stmt = $this->db->prepare($requestQuery);
325325
$stmt->execute($paginatedRequestIds);

0 commit comments

Comments
 (0)