query

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Overview

Package query provides the query common interfaces and utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Span

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

Span is a span of the tracer.

func (*Span) AddSubTrace

func (s *Span) AddSubTrace(trace *commonv1.Trace)

AddSubTrace adds a sub trace to the span.

func (*Span) Error

func (s *Span) Error(err error) *Span

Error marks the span as an error span.

func (*Span) Stop

func (s *Span) Stop()

Stop stops the span.

func (*Span) Tag

func (s *Span) Tag(key, value string) *Span

Tag adds a tag to the span.

func (*Span) Tagf

func (s *Span) Tagf(key, format string, args ...any) *Span

Tagf adds a formatted tag to the span.

type Tracer

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

Tracer is a simple tracer for query.

func GetTracer

func GetTracer(ctx context.Context) *Tracer

GetTracer returns the tracer from the context.

func NewTracer

func NewTracer(ctx context.Context, id string) (*Tracer, context.Context)

NewTracer creates a new tracer.

func (*Tracer) StartSpan

func (t *Tracer) StartSpan(ctx context.Context, format string, args ...interface{}) (*Span, context.Context)

StartSpan starts a new span.

func (*Tracer) ToProto

func (t *Tracer) ToProto() *commonv1.Trace

ToProto returns the proto representation of the tracer.

Directories

Path Synopsis
Package aggregation implements aggregation functions to statistic a range of values.
Package aggregation implements aggregation functions to statistic a range of values.
Package executor defines the specifications accessing underlying data repositories.
Package executor defines the specifications accessing underlying data repositories.
Package logical implements the executable operations.
Package logical implements the executable operations.
measure
Package measure implements execution operations for querying measure data.
Package measure implements execution operations for querying measure data.
stream
Package stream implements execution operations for querying stream data.
Package stream implements execution operations for querying stream data.
Package model defines the structures and interfaces for query options and results.
Package model defines the structures and interfaces for query options and results.

Jump to

Keyboard shortcuts

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