Documentation
¶
Index ¶
- Constants
- func FormatDuration(d time.Duration) string
- type DB
- func (db *DB) AllTraces() []*Trace
- func (*DB) Close() error
- func (db *DB) CollectTree(spans []*Span) []*TraceTree
- func (db *DB) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) error
- func (db *DB) ForceFlush(ctx context.Context) error
- func (db *DB) HighLevelSpan(call *callpbv1.Call) *Span
- func (db *DB) LogExporter() sdklog.Exporter
- func (db *DB) MostInterestingSpan(dig string) *Span
- func (db *DB) MustCall(dig string) *callpbv1.Call
- func (db *DB) RowsView(zoomedID trace.SpanID) *RowsView
- func (db *DB) SetPrimarySpan(span trace.SpanID)
- func (db *DB) Shutdown(ctx context.Context) error
- func (db *DB) Simplify(call *callpbv1.Call, force bool) (smallest *callpbv1.Call)
- func (db *DB) WalkSpans(spans []*Span, f func(*TraceTree))
- type DBLogExporter
- type FrontendOpts
- type Rows
- type RowsView
- type Span
- func (span *Span) ActiveDuration(fallbackEnd time.Time) time.Duration
- func (span *Span) Bar() SpanBar
- func (span *Span) ChildrenAndEffects() []*Span
- func (span *Span) Classes() string
- func (span *Span) EffectSpans() []*Span
- func (span *Span) EndTime() time.Time
- func (span *Span) EndTimeOrFallback(fallbackEnd time.Time) time.Time
- func (span *Span) Err() error
- func (span *Span) Failed() bool
- func (span *Span) HasParent(parent *Span) bool
- func (span *Span) IsBefore(other *Span) bool
- func (span *Span) IsInternal() bool
- func (span *Span) IsRunning() bool
- func (span *Span) Name() string
- func (span *Span) SelfDuration(fallbackEnd time.Time) time.Duration
- type SpanActivity
- type SpanBar
- type Task
- type Trace
- type TraceRow
- type TraceTree
Constants ¶
View Source
const ( HideCompletedVerbosity = 0 ShowCompletedVerbosity = 1 ExpandCompletedVerbosity = 2 ShowInternalVerbosity = 3 ShowEncapsulatedVerbosity = 3 ShowSpammyVerbosity = 4 ShowDigestsVerbosity = 4 )
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
Types ¶
type DB ¶
type DB struct {
PrimarySpan trace.SpanID
PrimaryLogs map[trace.SpanID][]sdklog.Record
Traces map[trace.TraceID]*Trace
Spans map[trace.SpanID]*Span
SpanOrder []*Span
Children map[trace.SpanID]map[trace.SpanID]struct{}
ChildrenOrder map[trace.SpanID][]trace.SpanID
Calls map[string]*callpbv1.Call
Outputs map[string]map[string]struct{}
OutputOf map[string]map[string]struct{}
Intervals map[string]map[time.Time]*Span
Effects map[string]*Span
EffectSite map[string]*Span
}
func (*DB) CollectTree ¶
func (*DB) ExportSpans ¶
func (*DB) LogExporter ¶
func (*DB) MostInterestingSpan ¶
func (*DB) SetPrimarySpan ¶
SetPrimarySpan allows the primary span to be explicitly set to a particular span. normally we assume the root span is the primary span, but in a nested scenario we never actually see the root span, so the CLI explicitly sets it to the span it created.
type DBLogExporter ¶
type DBLogExporter struct {
*DB
}
type FrontendOpts ¶
type FrontendOpts struct {
// Debug tells the frontend to show everything and do one big final render.
Debug bool
// Silent tells the frontend to not display progress at all.
Silent bool
// Verbosity is the level of detail to show in the TUI.
Verbosity int
// Don't show things that completed beneath this duration. (default 100ms)
TooFastThreshold time.Duration
// Remove completed things after this duration. (default 1s)
GCThreshold time.Duration
// Open web browser with the trace URL as soon as pipeline starts.
OpenWeb bool
// RevealAllSpans tells the frontend to show all spans, not just the spans
// beneath the primary span.
RevealAllSpans bool
// Leave the TUI running instead of exiting after completion.
NoExit bool
}
func (FrontendOpts) ShouldShow ¶
func (opts FrontendOpts) ShouldShow(tree *TraceTree) bool
type Span ¶
type Span struct {
sdktrace.ReadOnlySpan
ParentSpan *Span
ChildSpans []*Span
ID trace.SpanID
IsSelfRunning bool
Digest string
Call *callpbv1.Call
Base *callpbv1.Call
Internal bool
Cached bool
Canceled bool
EffectID string
Inputs []string
Effects []string
RunningEffects map[string]*Span
FailedEffects map[string]*Span
Encapsulate bool
Encapsulated bool
Mask bool
Passthrough bool
Ignore bool
// contains filtered or unexported fields
}
func (*Span) ChildrenAndEffects ¶
func (*Span) EffectSpans ¶
func (*Span) EndTimeOrFallback ¶
func (*Span) IsInternal ¶
type Trace ¶
Click to show internal directories.
Click to hide internal directories.