Versions in this module Expand all Collapse all v1 v1.15.1 Nov 7, 2019 Changes in this version + var ErrDurationMinGreaterThanMax = errors.New("Duration Minimum is above Maximum") + var ErrMalformedRequestObject = errors.New("Malformed request object") + var ErrServiceNameNotSet = errors.New("Service Name must be set") + var ErrStartAndEndTimeNotSet = errors.New("Start and End Time must be set") + var ErrStartTimeMinGreaterThanMax = errors.New("Start Time Minimum is above Maximum") + var ErrUnableToFindTraceIDAggregation = errors.New("Could not find aggregation of traceIDs") + type ServiceOperationStorage struct + func NewServiceOperationStorage(client es.Client, logger *zap.Logger, cacheTTL time.Duration) *ServiceOperationStorage + func (s *ServiceOperationStorage) Write(indexName string, jsonSpan *dbmodel.Span) + type SpanReader struct + func NewSpanReader(p SpanReaderParams) *SpanReader + func (s *SpanReader) FindTraceIDs(ctx context.Context, traceQuery *spanstore.TraceQueryParameters) ([]model.TraceID, error) + func (s *SpanReader) FindTraces(ctx context.Context, traceQuery *spanstore.TraceQueryParameters) ([]*model.Trace, error) + func (s *SpanReader) GetOperations(ctx context.Context, service string) ([]string, error) + func (s *SpanReader) GetServices(ctx context.Context) ([]string, error) + func (s *SpanReader) GetTrace(ctx context.Context, traceID model.TraceID) (*model.Trace, error) + type SpanReaderParams struct + Archive bool + Client es.Client + IndexPrefix string + Logger *zap.Logger + MaxNumSpans int + MaxSpanAge time.Duration + MetricsFactory metrics.Factory + TagDotReplacement string + UseReadWriteAliases bool + type SpanWriter struct + func NewSpanWriter(p SpanWriterParams) *SpanWriter + func (s *SpanWriter) Close() error + func (s *SpanWriter) CreateTemplates(spanTemplate, serviceTemplate string) error + func (s *SpanWriter) WriteSpan(span *model.Span) error + type SpanWriterParams struct + AllTagsAsFields bool + Archive bool + Client es.Client + IndexPrefix string + Logger *zap.Logger + MetricsFactory metrics.Factory + TagDotReplacement string + TagKeysAsFields []string + UseReadWriteAliases bool