chtrace

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package chtrace implements reading ClickHouse traces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	TraceID         proto.ColUUID                    // trace_id
	SpanID          proto.ColUInt64                  // span_id
	ParentSpanID    proto.ColUInt64                  // parent_span_id
	OperationName   *proto.ColLowCardinality[string] // operation_name
	StartTimeMicro  proto.ColUInt64                  // start_time_us
	FinishTimeMicro proto.ColUInt64                  // finish_time_us
	FinishDate      proto.ColDate                    // finish_date
	Attributes      proto.ColMap[string, string]     // attribute
	SpanKind        proto.ColEnum                    // span_kind
}

Table represents otel span table.

func NewTable

func NewTable() *Table

NewTable creates and initializes new Table.

func (*Table) Columns

func (t *Table) Columns() []string

Columns returns column names (and mappings) for doing SELECTS.

func (*Table) Result

func (t *Table) Result() proto.Results

Result returns proto.Results for Table.

func (Table) Rows

func (t Table) Rows() []Trace

Rows returns Trace per row.

type Trace

type Trace struct {
	TraceID       trace.TraceID
	SpanID        trace.SpanID
	ParentSpanID  trace.SpanID
	OperationName string
	StartTime     time.Time
	FinishTime    time.Time
	Attributes    map[string]string
	Kind          trace.SpanKind
}

Trace is a single trace span.

Jump to

Keyboard shortcuts

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