store

package
v0.0.0-...-15bfe67 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CREATE_SPANS_TABLE string = `` /* 585-byte string literal not displayed */

	SELECT_ORDERED_TRACES = `
		SELECT traceID 
		FROM spans
		GROUP BY traceID
		ORDER BY MAX(startTime) DESC
	`
	SELECT_TRACE string = `
		SELECT *
		FROM spans 
		WHERE traceID = ?
	`
	SELECT_ROOT_SPAN string = `` /* 143-byte string literal not displayed */

	SELECT_SPAN_COUNT string = `
		SELECT count(*) 
		FROM spans
		WHERE traceID = ?
	`

	TRUNCATE_SPANS string = `
		TRUNCATE spans;
	`
	ENABLE_JSON string = `
		INSTALL json;
		LOAD json;
	`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(ctx context.Context) *Store

func (*Store) AddSpans

func (s *Store) AddSpans(ctx context.Context, spans []telemetry.SpanData) error

func (*Store) ClearTraces

func (s *Store) ClearTraces(ctx context.Context) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) GetTrace

func (s *Store) GetTrace(ctx context.Context, traceID string) (telemetry.TraceData, error)

func (*Store) GetTraceSummaries

func (s *Store) GetTraceSummaries(ctx context.Context) (*[]telemetry.TraceSummary, error)

Jump to

Keyboard shortcuts

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