factoryadapter

package
v1.59.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Storage Factory Converter

A temporary v1 storage factory wrapper to implement v2 storage APIs. This way, the existing v1 storage factories declared in jaegerstorageextension can act as v2 storage while we migrate to v2 storage APIs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(ss storage_v1.Factory) spanstore.Factory

func NewTraceWriter

func NewTraceWriter(spanWriter spanstore_v1.Writer) spanstore.Writer

Types

type Factory

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

func (*Factory) Close

func (f *Factory) Close(_ context.Context) error

Close implements spanstore.Factory.

func (*Factory) CreateTraceReader

func (*Factory) CreateTraceReader() (spanstore.Reader, error)

CreateTraceReader implements spanstore.Factory.

func (*Factory) CreateTraceWriter

func (f *Factory) CreateTraceWriter() (spanstore.Writer, error)

CreateTraceWriter implements spanstore.Factory.

func (*Factory) Initialize

func (*Factory) Initialize(_ context.Context) error

Initialize implements spanstore.Factory.

type TraceWriter

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

func (*TraceWriter) WriteTraces

func (t *TraceWriter) WriteTraces(ctx context.Context, td ptrace.Traces) error

WriteTraces implements spanstore.Writer.

Jump to

Keyboard shortcuts

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