querysvc

package
v1.76.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 10 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StandardAdjusters

func StandardAdjusters(maxClockSkewAdjust time.Duration) []adjuster.Adjuster

StandardAdjusters is a list of model adjusters applied by the query service before returning the data to the API clients.

Types

type GetTraceParameters added in v1.65.0

type GetTraceParameters struct {
	spanstore.GetTraceParameters
	RawTraces bool
}

GetTraceParameters defines the parameters for querying a single trace from the query service.

type MetricsQueryService added in v1.24.0

type MetricsQueryService interface {
	metricstore.Reader
}

MetricsQueryService provides a means of querying R.E.D metrics from an underlying metrics store.

type QueryService

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

QueryService contains span utils required by the query-service.

func NewQueryService

func NewQueryService(traceReader tracestore.Reader, dependencyReader depstore.Reader, options QueryServiceOptions) *QueryService

NewQueryService returns a new QueryService.

func (QueryService) ArchiveTrace

func (qs QueryService) ArchiveTrace(ctx context.Context, query spanstore.GetTraceParameters) error

ArchiveTrace is the queryService utility to archive traces.

func (QueryService) FindTraces

func (qs QueryService) FindTraces(ctx context.Context, query *TraceQueryParameters) ([]*model.Trace, error)

FindTraces is the queryService implementation of spanstore.Reader.FindTraces

func (QueryService) GetCapabilities added in v1.52.0

func (qs QueryService) GetCapabilities() StorageCapabilities

GetCapabilities returns the features supported by the query service.

func (QueryService) GetDependencies

func (qs QueryService) GetDependencies(ctx context.Context, endTs time.Time, lookback time.Duration) ([]model.DependencyLink, error)

GetDependencies implements dependencystore.Reader.GetDependencies

func (QueryService) GetOperations

GetOperations is the queryService implementation of spanstore.Reader.GetOperations

func (QueryService) GetServices

func (qs QueryService) GetServices(ctx context.Context) ([]string, error)

GetServices is the queryService implementation of spanstore.Reader.GetServices

func (QueryService) GetTrace

func (qs QueryService) GetTrace(ctx context.Context, query GetTraceParameters) (*model.Trace, error)

GetTrace is the queryService implementation of spanstore.Reader.GetTrace

type QueryServiceOptions

type QueryServiceOptions struct {
	ArchiveSpanReader  spanstore.Reader
	ArchiveSpanWriter  spanstore.Writer
	MaxClockSkewAdjust time.Duration
}

QueryServiceOptions has optional members of QueryService

type StorageCapabilities added in v1.52.0

type StorageCapabilities struct {
	ArchiveStorage bool `json:"archiveStorage"`
}

StorageCapabilities is a feature flag for query service

type TraceQueryParameters added in v1.65.0

type TraceQueryParameters struct {
	spanstore.TraceQueryParameters
	RawTraces bool
}

TraceQueryParameters defines the parameters for querying a batch of traces from the query service.

Directories

Path Synopsis
internal
adjuster
Package adjuster contains various adjusters for model.Trace.
Package adjuster contains various adjusters for model.Trace.
v2

Jump to

Keyboard shortcuts

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