monkit

package
v0.0.0-...-4d7706c Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(files ...File) (*trace.Timeline, error)

Types

type Annotation

type Annotation [2]string

type File

type File []Span

type Func

type Func struct {
	Package string `json:"package"`
	Name    string `json:"name"`
}

type Span

type Span struct {
	ID          SpanID       `json:"id"`
	ParentID    *SpanID      `json:"parent_id,omitempty"`
	Func        Func         `json:"func"`
	Trace       Trace        `json:"trace"`
	Start       UnixNano     `json:"start"`
	Finish      UnixNano     `json:"finish"`
	Orphaned    bool         `json:"orphaned"`
	Err         string       `json:"err"`
	Panicked    bool         `json:"panicked"`
	Args        []string     `json:"args"`
	Annotations []Annotation `json:"annotations"`
}

type SpanID

type SpanID int64

type Trace

type Trace struct {
	ID TraceID `json:"id"`
}

type TraceID

type TraceID int64

type UnixNano

type UnixNano int64

func (UnixNano) Std

func (n UnixNano) Std() time.Duration

func (UnixNano) Time

func (n UnixNano) Time() trace.Time

Jump to

Keyboard shortcuts

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