tracecache

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Persist(ctx context.Context, entries []Entry) error
	Fetch(ctx context.Context, lowId uint64) (*EntryValue, error)
}

type Entry

type Entry struct {
	LowId uint64
	Value EntryValue
}

type EntryValue

type EntryValue struct {
	Identifiers []json.RawMessage `json:"identifiers"`
	StartTime   time.Time         `json:"startTime"`
	EndTime     time.Time         `json:"endTime"`
	RootObject  *utilobject.Key   `json:"rootObject"`

	Extensions []ExtensionCache `json:"extensions"`
}

type ExtensionCache

type ExtensionCache struct {
	ParentTrace      model.TraceID   `json:"parentTrace"`
	ParentSpan       model.SpanID    `json:"parentSpan"`
	ProviderKind     string          `json:"providerKind"`
	ProviderConfig   json.RawMessage `json:"providerConfig"`
	CachedIdentifier json.RawMessage `json:"cachedIdentifier"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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