component

package
v0.0.0-...-95428c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PAGE_TRACES         = "Traces"
	PAGE_TIMELINE       = "Timeline"
	PAGE_TRACE_TOPOLOGY = "TraceTopology"
	PAGE_LOGS           = "Logs"
	PAGE_DEBUG_LOG      = "DebugLog"
	PAGE_METRICS        = "Metrics"
	PAGE_MODAL          = "Modal"

	DEFAULT_PROPORTION_TRACE_DETAILS = 20
	DEFAULT_PROPORTION_TRACE_TABLE   = 30
	DEFAULT_PROPORTION_METRIC_SIDE   = 25
	DEFAULT_PROPORTION_METRIC_TABLE  = 25
	DEFAULT_PROPORTION_LOG_DETAILS   = 20
	DEFAULT_PROPORTION_LOG_TABLE     = 30
)
View Source
const (
	TIMELINE_DETAILS_IDX                = 1 // index of details in the base flex container
	TIMELINE_TREE_TITLE                 = "Details (d)"
	SPAN_NAME_COLUMN_WIDTH_RESIZE_UNIT  = 5
	SPAN_NAME_COLUMN_WIDTH_DEFAULT      = 30
	DEFAULT_PROPORTION_TIMELINE_DETAILS = 21
	DEFAULT_PROPORTION_TIMELINE_GRID    = 29
)
View Source
const MODAL_TITLE = "Scroll (Ctrl+J, Ctrl+K)"
View Source
const NULL_VALUE_FLOAT64 = math.MaxFloat64

Variables

This section is empty.

Functions

func DrawTimeline

func DrawTimeline(commands *tview.TextView, showModalFn showModalFunc, hideModalFn hideModalFunc, traceID string, tcache *telemetry.TraceCache, lcache *telemetry.LogCache, setFocusFn func(p tview.Primitive)) tview.Primitive

Types

type ByTimestamp

type ByTimestamp []*pmetric.NumberDataPoint

func (ByTimestamp) Len

func (a ByTimestamp) Len() int

func (ByTimestamp) Less

func (a ByTimestamp) Less(i, j int) bool

func (ByTimestamp) Swap

func (a ByTimestamp) Swap(i, j int)

type Focusable

type Focusable interface {
	SetFocusFunc(func()) *tview.Box
}

type KeyMap

type KeyMap struct {
	// contains filtered or unexported fields
}

type KeyMaps

type KeyMaps []*KeyMap

type LogDataForTable

type LogDataForTable struct {
	tview.TableContentReadOnly
	// contains filtered or unexported fields
}

LogDataForTable is a wrapper for logs to be displayed in a table

func NewLogDataForTable

func NewLogDataForTable(logs *[]*telemetry.LogData) LogDataForTable

NewLogDataForTable creates a new LogDataForTable.

func NewLogDataForTableForTimeline

func NewLogDataForTableForTimeline(logs *[]*telemetry.LogData) LogDataForTable

NewLogDataForTableForTimeline creates a new LogDataForTable for timeline page.

func (LogDataForTable) GetCell

func (l LogDataForTable) GetCell(row, column int) *tview.TableCell

implementations for tview Virtual Table see: https://github.com/rivo/tview/wiki/VirtualTable

func (LogDataForTable) GetColumnCount

func (l LogDataForTable) GetColumnCount() int

func (*LogDataForTable) GetColumnIdx

func (l *LogDataForTable) GetColumnIdx() int

implementation for tableModalMapper interface

func (LogDataForTable) GetRowCount

func (l LogDataForTable) GetRowCount() int

type MetricDataForTable

type MetricDataForTable struct {
	tview.TableContentReadOnly
	// contains filtered or unexported fields
}

func NewMetricDataForTable

func NewMetricDataForTable(metrics *[]*telemetry.MetricData) MetricDataForTable

func (MetricDataForTable) GetCell

func (m MetricDataForTable) GetCell(row, column int) *tview.TableCell

implementations for tview Virtual Table see: https://github.com/rivo/tview/wiki/VirtualTable

func (MetricDataForTable) GetColumnCount

func (m MetricDataForTable) GetColumnCount() int

func (MetricDataForTable) GetRowCount

func (m MetricDataForTable) GetRowCount() int

type SpanDataForTable

type SpanDataForTable struct {
	tview.TableContentReadOnly
	// contains filtered or unexported fields
}

SpanDataForTable is a wrapper for spans to be displayed in a table.

func NewSpanDataForTable

func NewSpanDataForTable(tcache *telemetry.TraceCache, spans *telemetry.SvcSpans, sortType *telemetry.SortType) SpanDataForTable

NewSpanDataForTable creates a new SpanDataForTable.

func (SpanDataForTable) GetCell

func (s SpanDataForTable) GetCell(row, column int) *tview.TableCell

implementations for tview Virtual Table see: https://github.com/rivo/tview/wiki/VirtualTable

func (SpanDataForTable) GetColumnCount

func (s SpanDataForTable) GetColumnCount() int

func (SpanDataForTable) GetRowCount

func (s SpanDataForTable) GetRowCount() int

type TUIPages

type TUIPages struct {
	// contains filtered or unexported fields
}

func NewTUIPages

func NewTUIPages(store *telemetry.Store, setFocusFn func(p tview.Primitive)) *TUIPages

func (*TUIPages) GetPages

func (p *TUIPages) GetPages() *tview.Pages

GetPages returns the pages

func (*TUIPages) ToggleLog

func (p *TUIPages) ToggleLog()

ToggleLog toggles the log page.

func (*TUIPages) TogglePage

func (p *TUIPages) TogglePage()

TogglePage toggles Traces & Logs page.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL