trace

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(traceID ID, data []byte, proc *run.Proc) ([]*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) 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 TraceMeta

type TraceMeta struct {
	ID      ID
	Reqs    []*tracepb.Request
	AppID   string
	AppRoot string
	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