Documentation
¶
Overview ¶
Package chdump provides utilities to read ClickHouse data dumps created by oteldb.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadDir ¶
func ReadDir(dir string, opts ReadOptions) error
ReadDir reads dump from unpacked directory.
Types ¶
type Attributes ¶
type Attributes struct {
// contains filtered or unexported fields
}
func (*Attributes) DecodeColumn ¶
func (a *Attributes) DecodeColumn(r *proto.Reader, rows int) error
func (*Attributes) DecodeState ¶
func (a *Attributes) DecodeState(r *proto.Reader) error
func (*Attributes) Reset ¶
func (a *Attributes) Reset()
func (*Attributes) Row ¶
func (a *Attributes) Row(i int) otelstorage.Attrs
func (Attributes) Rows ¶
func (a Attributes) Rows() int
func (Attributes) Type ¶
func (a Attributes) Type() proto.ColumnType
type ExpHistograms ¶
type ExpHistograms struct {
Name *proto.ColLowCardinality[string]
NameNormalized *proto.ColLowCardinality[string]
Timestamp *proto.ColDateTime64
Count *proto.ColUInt64
Sum *proto.ColNullable[float64]
Min *proto.ColNullable[float64]
Max *proto.ColNullable[float64]
Scale *proto.ColInt32
ZeroCount *proto.ColUInt64
PositiveOffset *proto.ColInt32
PositiveBucketCounts *proto.ColArr[uint64]
NegativeOffset *proto.ColInt32
NegativeBucketCounts *proto.ColArr[uint64]
Flags *proto.ColUInt8
Attributes *Attributes
Scope *Attributes
Resource *Attributes
}
ExpHistograms is a parsed dump of metric ExpHistograms.
func NewExpHistograms ¶
func NewExpHistograms() *ExpHistograms
NewExpHistograms creates a new ExpHistograms.
func (*ExpHistograms) Result ¶
func (c *ExpHistograms) Result() proto.Results
Result returns a ExpHistograms result.
type Logs ¶
type Logs struct {
ServiceInstanceID *proto.ColLowCardinality[string]
ServiceName *proto.ColLowCardinality[string]
ServiceNamespace *proto.ColLowCardinality[string]
Timestamp *proto.ColDateTime64
SeverityNumber *proto.ColUInt8
SeverityText *proto.ColLowCardinality[string]
TraceFlags *proto.ColUInt8
TraceID *proto.ColRawOf[otelstorage.TraceID]
SpanID *proto.ColRawOf[otelstorage.SpanID]
Body *proto.ColStr
Attributes *Attributes
Resource *Attributes
Scope *Attributes
ScopeName *proto.ColLowCardinality[string]
ScopeVersion *proto.ColLowCardinality[string]
}
Logs is a parsed dump of logs.
type Points ¶
type Points struct {
Name *proto.ColLowCardinality[string]
NameNormalized *proto.ColLowCardinality[string]
Timestamp *proto.ColDateTime64
Mapping *proto.ColEnum8
Value *proto.ColFloat64
Flags *proto.ColUInt8
Attributes *Attributes
Resource *Attributes
Scope *Attributes
}
Points is a parsed dump of metric points.
type ReadOptions ¶
type ReadOptions struct {
OnTraces func(*Spans) error
OnPoints func(*Points) error
OnExpHistograms func(*ExpHistograms) error
OnLogs func(*Logs) error
}
ReadOptions defines options for [Read].
type Spans ¶
type Spans struct {
ServiceInstanceID *proto.ColLowCardinality[string]
ServiceName *proto.ColLowCardinality[string]
ServiceNamespace *proto.ColLowCardinality[string]
TraceID *proto.ColRawOf[otelstorage.TraceID]
SpanID *proto.ColRawOf[otelstorage.SpanID]
TraceState *proto.ColStr
ParentSpanID *proto.ColRawOf[otelstorage.SpanID]
Name *proto.ColLowCardinality[string]
Kind *proto.ColEnum8
Start *proto.ColDateTime64
End *proto.ColDateTime64
StatusCode *proto.ColUInt8
StatusMessage *proto.ColLowCardinality[string]
BatchID *proto.ColUUID
Attributes *Attributes
Resource *Attributes
Scope *Attributes
ScopeName *proto.ColLowCardinality[string]
ScopeVersion *proto.ColLowCardinality[string]
EventsNames *proto.ColArr[string]
EventsTimestamps *proto.ColArr[time.Time]
EventsAttributes *proto.ColArr[[]byte]
LinksTraceIDs *proto.ColArr[otelstorage.TraceID]
LinksSpanIDs *proto.ColArr[otelstorage.SpanID]
LinksTracestates *proto.ColArr[string]
LinksAttributes *proto.ColArr[[]byte]
}
Spans is a parsed dump of traces_spans.
Click to show internal directories.
Click to hide internal directories.