Versions in this module Expand all Collapse all v0 v0.26.0 Feb 26, 2026 Changes in this version + const ColDuration + const ColLabels + const ColName + const ColPeriod + const ColPeriodType + const ColPeriodUnit + const ColSampleType + const ColSampleUnit + const ColStacktraceAddress + const ColStacktraceFunctionFilename + const ColStacktraceFunctionName + const ColStacktraceFunctionStartLine + const ColStacktraceFunctionSystemName + const ColStacktraceLineNumber + const ColStacktraceMappingBuildID + const ColStacktraceMappingFile + const ColStacktraceMappingLimit + const ColStacktraceMappingOffset + const ColStacktraceMappingStart + const ColTimeNanos + const ColTimestamp + const ColValue + func BuildWhereClause(conditions []string, allArgs []interface{}) (string, []interface{}) + func CreateTableSQL(database, table string) string + func InsertSQL(database, table string) string + func LabelMatchersToSQL(matchers []*labels.Matcher) (string, []interface{}, error) + func ProfileTypeFilter(qp profile.QueryParts) (string, []interface{}) + func QueryToFilters(query string, startNanos, endNanos int64) (string, []interface{}, profile.QueryParts, error) + func TimeRangeFilter(startNanos, endNanos int64) (string, []interface{}) + type Client struct + func NewClient(ctx context.Context, cfg Config) (*Client, error) + func (c *Client) Close() error + func (c *Client) Config() Config + func (c *Client) Conn() driver.Conn + func (c *Client) Database() string + func (c *Client) EnsureSchema(ctx context.Context) error + func (c *Client) Exec(ctx context.Context, query string, args ...interface{}) error + func (c *Client) FullTableName() string + func (c *Client) PrepareBatch(ctx context.Context, query string) (driver.Batch, error) + func (c *Client) Query(ctx context.Context, query string, args ...interface{}) (driver.Rows, error) + func (c *Client) Table() string + type Config struct + Address string + Database string + Password string + Secure bool + Table string + Username string + type Ingester struct + func NewIngester(logger log.Logger, client *Client) *Ingester + func (i *Ingester) Ingest(ctx context.Context, record arrow.RecordBatch) error + type LineInfo struct + FunctionFilename string + FunctionName string + FunctionStartLine int64 + FunctionSystemName string + LineNumber int64 + type Querier struct + func NewQuerier(client *Client, logger log.Logger, tracer trace.Tracer, mem memory.Allocator, ...) *Querier + func (q *Querier) GetProfileMetadataLabels(ctx context.Context, query string, start, end time.Time) ([]string, error) + func (q *Querier) GetProfileMetadataMappings(ctx context.Context, query string, start, end time.Time) ([]string, error) + func (q *Querier) HasProfileData(ctx context.Context) (bool, error) + func (q *Querier) Labels(ctx context.Context, match []string, start, end time.Time, profileType string) ([]string, error) + func (q *Querier) ProfileTypes(ctx context.Context, start, end time.Time) ([]*pb.ProfileType, error) + func (q *Querier) QueryMerge(ctx context.Context, query string, start, end time.Time, ...) (profile.Profile, error) + func (q *Querier) QueryRange(ctx context.Context, query string, startTime, endTime time.Time, ...) ([]*pb.MetricsSeries, error) + func (q *Querier) QuerySingle(ctx context.Context, query string, t time.Time, invertCallStacks bool) (profile.Profile, error) + func (q *Querier) Values(ctx context.Context, labelName string, match []string, start, end time.Time, ...) ([]string, error) + type StacktraceData struct + Addresses []uint64 + FunctionFilenames []string + FunctionNames []string + FunctionStartLines []int64 + FunctionSystemNames []string + LineNumbers []int64 + MappingBuildIDs []string + MappingFiles []string + MappingLimits []uint64 + MappingOffsets []uint64 + MappingStarts []uint64