Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trace ¶
type Trace struct {
Name string `json:"name,omitempty"`
Metadata string `json:"metadata,omitempty"`
Start int64 `json:"start,omitempty"`
End int64 `json:"end,omitempty"`
StartTime time.Time `json:"-"`
EndTime time.Time `json:"-"`
TraceEvents TraceEvents `json:"elements,omitempty"`
}
func (*Trace) Publish ¶
func (t *Trace) Publish(ctx context.Context, lvl tracer.Level, opts ...opentracing.StartSpanOption) error
type TraceEvent ¶
type TraceEvent struct {
Name string `json:"name,omitempty"`
Metadata string `json:"metadata,omitempty"`
LayerType string `json:"layer_type,omitempty"`
Start int64 `json:"start,omitempty"`
End int64 `json:"end,omitempty"`
ProcessID uint64 `json:"process_id,omitempty"`
ThreadID uint64 `json:"thread_id,omitempty"`
LayerSequenceIndex int64 `json:"layer_sequence_index,omitempty"`
Shapes [][]int64 `json:"shapes,omitempty"`
StartTime time.Time `json:"-"`
EndTime time.Time `json:"-"`
}
func (TraceEvent) ID ¶
func (t TraceEvent) ID() string
func (*TraceEvent) Publish ¶
func (event *TraceEvent) Publish(ctx context.Context, lvl tracer.Level, opts ...opentracing.StartSpanOption) error
type TraceEvents ¶
type TraceEvents []TraceEvent
func (TraceEvents) Len ¶
func (t TraceEvents) Len() int
func (TraceEvents) Less ¶
func (t TraceEvents) Less(i, j int) bool
func (TraceEvents) Swap ¶
func (t TraceEvents) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.