trace

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(log *zerolog.Logger, traceID ID, data []byte, version trace.Version, symTable SymTabler) ([]*tracepb.Request, error)

Types

type ID

type ID [16]byte

type Store

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

A Store stores traces received from running applications.

func NewStore

func NewStore() *Store

func (*Store) GetRootTrace added in v1.11.0

func (st *Store) GetRootTrace(traceID *tracepb.TraceID) (rtn *tracepb.Request)

func (*Store) List

func (st *Store) List(appID string) []*TraceMeta

func (*Store) Listen

func (st *Store) Listen(ch chan<- *TraceMeta)

func (*Store) Store

func (st *Store) Store(ctx context.Context, tr *TraceMeta) error

type SymTabler added in v1.3.0

type SymTabler interface {
	SymTable(ctx context.Context) (*sym.Table, error)
}

type TraceMeta

type TraceMeta struct {
	ID    ID
	Reqs  []*tracepb.Request
	App   *apps.Instance
	EnvID string
	Date  time.Time
	Meta  *metapb.Data
}

Jump to

Keyboard shortcuts

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