|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Correlation / trace viewer panel. More...
#include <TraceViewerPanel.hpp>


Public Slots | |
| void | Refresh () |
| Rebuild the correlation table from the current visible row set. | |
Public Member Functions | |
| TraceViewerPanel (db::EventsContainer &events, EventsTableView *eventsView, QWidget *parent=nullptr) | |
Private Member Functions | |
| void | BuildLayout () |
| void | PopulateFieldCombo () |
| Populate the field combo from the first N events' field names. | |
| void | RebuildTree (const QString &field) |
Rebuild the tree for the given correlation field. | |
| void | FilterTree (const QString &text) |
Show/hide tree items that do (not) contain text. | |
Private Attributes | |
| db::EventsContainer & | m_events |
| EventsTableView * | m_eventsView |
| QLineEdit * | m_searchEdit {nullptr} |
| QComboBox * | m_fieldCombo {nullptr} |
| QTreeWidget * | m_tree {nullptr} |
| QPushButton * | m_clearBtn {nullptr} |
| QLabel * | m_statusLabel {nullptr} |
| std::map< std::string, std::vector< unsigned long > > | m_traceEvents |
| Maps trace-ID key → event indices (top-level items). | |
| DrillDownFilter | m_traceFilter |
| The trace filter set by a double-click, and the filter it replaced. | |
| std::vector< unsigned long > | m_shownIndices |
| The events the tree was last built from. | |
Correlation / trace viewer panel.
Groups visible events by the value of a user-selected field (e.g. requestId, sessionId, traceId). Each unique value becomes a top-level row showing aggregate statistics: event count, error count, duration, and first/last timestamps.
Child rows show per-actor and per-message-type breakdowns. When span fields (spanId / parentSpanId or parentId) are present the top-level rows are further nested into a call-tree hierarchy.
A search bar at the top filters the tree to matching trace IDs. Double-clicking any row filters the events view to the associated events.
|
explicit |

|
private |


|
private |
Show/hide tree items that do (not) contain text.

|
private |
Populate the field combo from the first N events' field names.


|
private |
Rebuild the tree for the given correlation field.


|
slot |
Rebuild the correlation table from the current visible row set.

|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
The events the tree was last built from.
|
private |
|
private |
Maps trace-ID key → event indices (top-level items).
|
private |
The trace filter set by a double-click, and the filter it replaced.
|
private |