Documentation ¶
Index ¶
- func Classify(sp model.Span) string
- func FilterTraceByDepth(trace model.Trace, depth int) (model.Trace, error)
- func FixParentRelationship(trace model.Trace) (model.Trace, error)
- func FixTrace(trace model.Trace) (model.Trace, error)
- func FrameworkLayerIndex(sp model.Span) (int, error)
- type Classification
- func (i Classification) IsAClassification() bool
- func (i Classification) MarshalJSON() ([]byte, error)
- func (i Classification) MarshalText() ([]byte, error)
- func (i Classification) MarshalYAML() (interface{}, error)
- func (i *Classification) Scan(value interface{}) error
- func (i Classification) String() string
- func (i *Classification) UnmarshalJSON(data []byte) error
- func (i *Classification) UnmarshalText(text []byte) error
- func (i *Classification) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (i Classification) Value() (driver.Value, error)
- type Interval
- func (i Interval) Contains(iv Interval) bool
- func (i Interval) End() uint64
- func (i Interval) HighAtDimension(uint64) int64
- func (i Interval) ID() uint64
- func (i Interval) IsNil() bool
- func (i Interval) LowAtDimension(uint64) int64
- func (i Interval) OverlapsAtDimension(iv augmentedtree.Interval, dimension uint64) bool
- func (i Interval) Start() uint64
- type IntervalTree
- func (t IntervalTree) ChildrenOf(sp Interval) []Interval
- func (t IntervalTree) DepthOf(sp Interval) int
- func (t IntervalTree) FilterByDepth(depth int) (model.Trace, error)
- func (t *IntervalTree) FilterOnlyChildrenOf(operationName string) (*Interval, error)
- func (t IntervalTree) FixParentRelationship() (model.Trace, error)
- func (t IntervalTree) GetIntervalByIdx(idx int) Interval
- func (t IntervalTree) GetIntervals() []Interval
- func (t IntervalTree) GetIntervalsByOperationName(name string) []Interval
- func (t IntervalTree) ID() string
- func (t IntervalTree) ImmediateChildrenOf(sp Interval) []Interval
- func (t IntervalTree) MaxInterval() Interval
- func (t IntervalTree) ParentOf(sp Interval) Interval
- func (t IntervalTree) ParentsOf(sp Interval) []Interval
- type Intervals
- type TraceInformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterTraceByDepth ¶
Types ¶
type Classification ¶
type Classification int
const ( ClassificationGenericAPI Classification = iota + 1 ClassificationDeepScope ClassificationAPIRequest ClassificationAPITracing ClassificationMXNetCAPI ClassificationOpen ClassificationURLs ClassificationClose ClassificationFrameworkLayer ClassificationUnknown = Classification(math.MaxInt32) )
func ClassificationString ¶
func ClassificationString(s string) (Classification, error)
ClassificationString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ClassificationValues ¶
func ClassificationValues() []Classification
ClassificationValues returns all values of the enum
func (Classification) IsAClassification ¶
func (i Classification) IsAClassification() bool
IsAClassification returns "true" if the value is listed in the enum definition. "false" otherwise
func (Classification) MarshalJSON ¶
func (i Classification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for Classification
func (Classification) MarshalText ¶
func (i Classification) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface for Classification
func (Classification) MarshalYAML ¶
func (i Classification) MarshalYAML() (interface{}, error)
MarshalYAML implements a YAML Marshaler for Classification
func (*Classification) Scan ¶
func (i *Classification) Scan(value interface{}) error
func (Classification) String ¶
func (i Classification) String() string
func (*Classification) UnmarshalJSON ¶
func (i *Classification) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for Classification
func (*Classification) UnmarshalText ¶
func (i *Classification) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface for Classification
func (*Classification) UnmarshalYAML ¶
func (i *Classification) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements a YAML Unmarshaler for Classification
type Interval ¶
func ToInterval ¶
func (Interval) HighAtDimension ¶
func (Interval) LowAtDimension ¶
func (Interval) OverlapsAtDimension ¶
func (i Interval) OverlapsAtDimension(iv augmentedtree.Interval, dimension uint64) bool
type IntervalTree ¶
type IntervalTree struct { augmentedtree.Tree // contains filtered or unexported fields }
func NewIntervalTree ¶
func NewIntervalTree(trace model.Trace) (*IntervalTree, error)
func NewIntervalTreeFromTraceFile ¶
func NewIntervalTreeFromTraceFile(path string) (*IntervalTree, error)
func NewIntervalTreeFromTraceString ¶
func NewIntervalTreeFromTraceString(data string) (*IntervalTree, error)
func (IntervalTree) ChildrenOf ¶
func (t IntervalTree) ChildrenOf(sp Interval) []Interval
func (IntervalTree) DepthOf ¶
func (t IntervalTree) DepthOf(sp Interval) int
func (IntervalTree) FilterByDepth ¶
func (t IntervalTree) FilterByDepth(depth int) (model.Trace, error)
func (*IntervalTree) FilterOnlyChildrenOf ¶
func (t *IntervalTree) FilterOnlyChildrenOf(operationName string) (*Interval, error)
func (IntervalTree) FixParentRelationship ¶
func (t IntervalTree) FixParentRelationship() (model.Trace, error)
func (IntervalTree) GetIntervalByIdx ¶
func (t IntervalTree) GetIntervalByIdx(idx int) Interval
func (IntervalTree) GetIntervals ¶
func (t IntervalTree) GetIntervals() []Interval
func (IntervalTree) GetIntervalsByOperationName ¶
func (t IntervalTree) GetIntervalsByOperationName(name string) []Interval
func (IntervalTree) ID ¶
func (t IntervalTree) ID() string
func (IntervalTree) ImmediateChildrenOf ¶
func (t IntervalTree) ImmediateChildrenOf(sp Interval) []Interval
func (IntervalTree) MaxInterval ¶
func (t IntervalTree) MaxInterval() Interval
func (IntervalTree) ParentOf ¶
func (t IntervalTree) ParentOf(sp Interval) Interval
func (IntervalTree) ParentsOf ¶
func (t IntervalTree) ParentsOf(sp Interval) []Interval
type TraceInformation ¶
type TraceInformation struct { Traces []model.Trace `bson:"data,omitempty" json:"data,omitempty"` Total int `bson:"total,omitempty" json:"total,omitempty"` Limit int `bson:"limit,omitempty" json:"limit,omitempty"` Offset int `bson:"offset,omitempty" json:"offset,omitempty"` Errors []structuredError `bson:"errors,omitempty" json:"errors,omitempty"` }