jaegerbackend

package
v0.2.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// Lists the thumbnail previews of all traces.
	List(
		ctx context.Context,
		query *spanstore.TraceQueryParameters,
	) ([]*TraceThumbnail, error)

	// Gets the full tree of a trace based on the identifier returned from a previous call to List.
	//
	// traceId is the fake trace ID that should be presented to the user.
	//
	// startTime and endTime are only for optimization hint.
	// The implementation is allowed to return spans beyond the range.
	Get(
		ctx context.Context,
		identifier json.RawMessage,
		traceId model.TraceID,
		startTime, endTime time.Time,
	) (*model.Trace, error)
}

type TraceThumbnail

type TraceThumbnail struct {
	// Identifier is a serializable object that identifies the trace in GetTrace calls.
	Identifier any

	Spans *tftree.SpanTree
}

func (*TraceThumbnail) FromThumbnail

func (tt *TraceThumbnail) FromThumbnail(src *TraceThumbnail)

func (*TraceThumbnail) GetMetadata

func (tt *TraceThumbnail) GetMetadata() any

func (*TraceThumbnail) GetSpans

func (tt *TraceThumbnail) GetSpans() *tftree.SpanTree

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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