esspanreader

package
v0.0.0-...-5deca64 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Archive             bool
	UseReadWriteAliases bool
	IndexPrefix         string
	IndexDateLayout     string
	MaxSpanAge          time.Duration
	MaxDocCount         int
	TagDotReplacement   string
}

Config defines configuration for span reader.

type Reader

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

Reader defines Elasticsearch reader.

func NewEsSpanReader

func NewEsSpanReader(client esclient.ElasticsearchClient, logger *zap.Logger, config Config) *Reader

NewEsSpanReader creates Elasticseach span reader.

func (*Reader) FindTraceIDs

func (r *Reader) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)

FindTraceIDs implements spanstore.Reader

func (*Reader) FindTraces

func (r *Reader) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)

FindTraces implements spanstore.Reader

func (*Reader) GetOperations

GetOperations implements spanstore.Reader

func (*Reader) GetServices

func (r *Reader) GetServices(ctx context.Context) ([]string, error)

GetServices implements spanstore.Reader

func (*Reader) GetTrace

func (r *Reader) GetTrace(ctx context.Context, traceID model.TraceID) (*model.Trace, error)

GetTrace implements spanstore.Reader

Jump to

Keyboard shortcuts

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