chstorage

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Package chstorage provides Clickhouse-based storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inserter

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

Inserter implements tracestorage.Inserter using Clickhouse.

func NewInserter

func NewInserter(c *chpool.Pool, tables Tables) *Inserter

NewInserter creates new Inserter.

func (*Inserter) InsertSpans

func (i *Inserter) InsertSpans(ctx context.Context, spans []tracestorage.Span) error

InsertSpans inserts given spans.

func (*Inserter) InsertTags

func (i *Inserter) InsertTags(ctx context.Context, tags map[tracestorage.Tag]struct{}) error

InsertTags insert given set of tags to the storage.

type Querier

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

Querier implements tracestorage.Querier using Clickhouse.

func NewQuerier

func NewQuerier(c *chpool.Pool, tables Tables) *Querier

NewQuerier creates new Querier.

func (*Querier) SearchTags

SearchTags performs search by given tags.

func (*Querier) TagNames

func (q *Querier) TagNames(ctx context.Context) (r []string, _ error)

TagNames returns all available tag names.

func (*Querier) TagValues

func (q *Querier) TagValues(ctx context.Context, tagName string) (iterators.Iterator[tracestorage.Tag], error)

TagValues returns all available tag values for given tag.

func (*Querier) TraceByID

TraceByID returns spans of given trace.

type Tables

type Tables struct {
	Spans string
	Tags  string
}

Tables define table names.

func (Tables) Create

func (t Tables) Create(ctx context.Context, c chClient) error

Create creates tables.

Jump to

Keyboard shortcuts

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