Documentation
¶
Index ¶
- Constants
- func DuckDBColumns(s *arrow.Schema) (string, error)
- func DuckDBType(dt arrow.DataType) (string, error)
- func LogsSchema() *arrow.Schema
- func ServiceName(res pcommon.Resource) string
- func SpansSchema() *arrow.Schema
- type LogsBuilder
- func (b *LogsBuilder) Append(res pcommon.Resource, scope pcommon.InstrumentationScope, rec plog.LogRecord, ...)
- func (b *LogsBuilder) EstimatedBytes() int64
- func (b *LogsBuilder) Len() int
- func (b *LogsBuilder) MinMaxTime() (time.Time, time.Time)
- func (b *LogsBuilder) NewRecord() arrow.RecordBatch
- func (b *LogsBuilder) Release()
- type SpansBuilder
- func (b *SpansBuilder) Append(res pcommon.Resource, scope pcommon.InstrumentationScope, span ptrace.Span, ...)
- func (b *SpansBuilder) EstimatedBytes() int64
- func (b *SpansBuilder) Len() int
- func (b *SpansBuilder) MinMaxTime() (time.Time, time.Time)
- func (b *SpansBuilder) NewRecord() arrow.RecordBatch
- func (b *SpansBuilder) Release()
Constants ¶
const ( SchemaVersionKey = "quacktel.schema_version" SchemaVersion = "1" SignalKey = "quacktel.signal" )
Variables ¶
This section is empty.
Functions ¶
func DuckDBColumns ¶
DuckDBColumns returns a select list of typed NULLs, so a view over zero files still has the schema's columns.
func DuckDBType ¶
DuckDBType maps the Arrow types used by the quacktel schemas to the DuckDB type read_parquet infers for them.
func LogsSchema ¶
func ServiceName ¶
ServiceName returns the resource service.name, or unknown_service when missing or empty.
func SpansSchema ¶
Types ¶
type LogsBuilder ¶
type LogsBuilder struct {
// contains filtered or unexported fields
}
func NewLogsBuilder ¶
func NewLogsBuilder(mem memory.Allocator) *LogsBuilder
func (*LogsBuilder) Append ¶
func (b *LogsBuilder) Append(res pcommon.Resource, scope pcommon.InstrumentationScope, rec plog.LogRecord, receivedAt time.Time)
func (*LogsBuilder) EstimatedBytes ¶
func (b *LogsBuilder) EstimatedBytes() int64
func (*LogsBuilder) NewRecord ¶
func (b *LogsBuilder) NewRecord() arrow.RecordBatch
NewRecord resets the builder so it can be reused for the next flush.
type SpansBuilder ¶
type SpansBuilder struct {
// contains filtered or unexported fields
}
func NewSpansBuilder ¶
func NewSpansBuilder(mem memory.Allocator) *SpansBuilder
func (*SpansBuilder) Append ¶
func (b *SpansBuilder) Append(res pcommon.Resource, scope pcommon.InstrumentationScope, span ptrace.Span, receivedAt time.Time)
func (*SpansBuilder) EstimatedBytes ¶
func (b *SpansBuilder) EstimatedBytes() int64
func (*SpansBuilder) NewRecord ¶
func (b *SpansBuilder) NewRecord() arrow.RecordBatch
NewRecord resets the builder so it can be reused for the next flush.