Documentation ¶
Index ¶
- Variables
- func GetV1Reader(reader tracestore.Reader) (spanstore.Reader, error)
- func InitializeArchiveStorage(storageFactory storage.BaseFactory, logger *zap.Logger) (*TraceReader, *TraceWriter)
- func ProtoFromTraces(traces ptrace.Traces) []*model.Batch
- func V1BatchesFromTraces(traces ptrace.Traces) []*model.Batch
- func V1BatchesToTraces(batches []*model.Batch) ptrace.Traces
- func V1TraceIDsFromSeq2(traceIDsIter iter.Seq2[[]pcommon.TraceID, error]) ([]model.TraceID, error)
- func V1TraceToOtelTrace(jTrace *model.Trace) ptrace.Traces
- func V1TracesFromSeq2(otelSeq iter.Seq2[[]ptrace.Traces, error]) ([]*model.Trace, error)
- type DependencyReader
- type Factory
- type SpanReader
- func (sr *SpanReader) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)
- func (sr *SpanReader) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
- func (sr *SpanReader) GetOperations(ctx context.Context, query spanstore.OperationQueryParameters) ([]spanstore.Operation, error)
- func (sr *SpanReader) GetServices(ctx context.Context) ([]string, error)
- func (sr *SpanReader) GetTrace(ctx context.Context, query spanstore.GetTraceParameters) (*model.Trace, error)
- type TraceReader
- func (tr *TraceReader) FindTraceIDs(ctx context.Context, query tracestore.TraceQueryParams) iter.Seq2[[]pcommon.TraceID, error]
- func (tr *TraceReader) FindTraces(ctx context.Context, query tracestore.TraceQueryParams) iter.Seq2[[]ptrace.Traces, error]
- func (tr *TraceReader) GetOperations(ctx context.Context, query tracestore.OperationQueryParams) ([]tracestore.Operation, error)
- func (tr *TraceReader) GetServices(ctx context.Context) ([]string, error)
- func (tr *TraceReader) GetTraces(ctx context.Context, traceIDs ...tracestore.GetTraceParams) iter.Seq2[[]ptrace.Traces, error]
- type TraceWriter
Constants ¶
This section is empty.
Variables ¶
var ErrV1ReaderNotAvailable = errors.New("spanstore.Reader is not a wrapper around v1 reader")
Functions ¶
func GetV1Reader ¶
func GetV1Reader(reader tracestore.Reader) (spanstore.Reader, error)
func InitializeArchiveStorage ¶
func InitializeArchiveStorage( storageFactory storage.BaseFactory, logger *zap.Logger, ) (*TraceReader, *TraceWriter)
func ProtoFromTraces ¶
ProtoFromTraces converts OpenTelemetry traces (ptrace.Traces) to Jaeger model batches ([]*model.Batch).
TODO remove this function in favor of V1BatchesFromTraces
func V1BatchesFromTraces ¶
V1BatchesFromTraces converts OpenTelemetry traces (ptrace.Traces) to Jaeger model batches ([]*model.Batch).
func V1BatchesToTraces ¶
V1BatchesToTraces converts Jaeger model batches ([]*model.Batch) to OpenTelemetry traces (ptrace.Traces).
func V1TraceIDsFromSeq2 ¶
func V1TraceToOtelTrace ¶
V1TraceToOtelTrace converts v1 traces (*model.Trace) to Otel traces (ptrace.Traces)
Types ¶
type DependencyReader ¶
type DependencyReader struct {
// contains filtered or unexported fields
}
func NewDependencyReader ¶
func NewDependencyReader(reader dependencystore.Reader) *DependencyReader
func (*DependencyReader) GetDependencies ¶
func (dr *DependencyReader) GetDependencies( ctx context.Context, query depstore.QueryParameters, ) ([]model.DependencyLink, error)
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory(ss storage_v1.Factory) *Factory
func (*Factory) CreateDependencyReader ¶
CreateDependencyReader implements depstore.Factory.
func (*Factory) CreateTraceReader ¶
func (f *Factory) CreateTraceReader() (tracestore.Reader, error)
CreateTraceReader implements tracestore.Factory.
func (*Factory) CreateTraceWriter ¶
func (f *Factory) CreateTraceWriter() (tracestore.Writer, error)
CreateTraceWriter implements tracestore.Factory.
type SpanReader ¶
type SpanReader struct {
// contains filtered or unexported fields
}
SpanReader wraps a tracestore.Reader so that it can be downgraded to implement the v1 spanstore.Reader interface.
func NewSpanReader ¶
func NewSpanReader(traceReader tracestore.Reader) *SpanReader
func (*SpanReader) FindTraceIDs ¶
func (sr *SpanReader) FindTraceIDs( ctx context.Context, query *spanstore.TraceQueryParameters, ) ([]model.TraceID, error)
func (*SpanReader) FindTraces ¶
func (sr *SpanReader) FindTraces( ctx context.Context, query *spanstore.TraceQueryParameters, ) ([]*model.Trace, error)
func (*SpanReader) GetOperations ¶
func (sr *SpanReader) GetOperations( ctx context.Context, query spanstore.OperationQueryParameters, ) ([]spanstore.Operation, error)
func (*SpanReader) GetServices ¶
func (sr *SpanReader) GetServices(ctx context.Context) ([]string, error)
func (*SpanReader) GetTrace ¶
func (sr *SpanReader) GetTrace(ctx context.Context, query spanstore.GetTraceParameters) (*model.Trace, error)
type TraceReader ¶
type TraceReader struct {
// contains filtered or unexported fields
}
func NewTraceReader ¶
func NewTraceReader(spanReader spanstore.Reader) *TraceReader
func (*TraceReader) FindTraceIDs ¶
func (tr *TraceReader) FindTraceIDs( ctx context.Context, query tracestore.TraceQueryParams, ) iter.Seq2[[]pcommon.TraceID, error]
func (*TraceReader) FindTraces ¶
func (tr *TraceReader) FindTraces( ctx context.Context, query tracestore.TraceQueryParams, ) iter.Seq2[[]ptrace.Traces, error]
func (*TraceReader) GetOperations ¶
func (tr *TraceReader) GetOperations( ctx context.Context, query tracestore.OperationQueryParams, ) ([]tracestore.Operation, error)
func (*TraceReader) GetServices ¶
func (tr *TraceReader) GetServices(ctx context.Context) ([]string, error)
func (*TraceReader) GetTraces ¶
func (tr *TraceReader) GetTraces( ctx context.Context, traceIDs ...tracestore.GetTraceParams, ) iter.Seq2[[]ptrace.Traces, error]
type TraceWriter ¶
type TraceWriter struct {
// contains filtered or unexported fields
}
func NewTraceWriter ¶
func NewTraceWriter(spanWriter spanstore.Writer) *TraceWriter
func (*TraceWriter) WriteTraces ¶
WriteTraces implements tracestore.Writer.