Documentation ¶
Index ¶
- type AuditDiffClass
- type AuditDiffClassification
- type AuditDiffFieldClasses
- type ClusterNameVisitor
- type CollapseNestingVisitor
- type CompactDurationVisitor
- type ExtractNestingVisitor
- type GroupByTraceSourceVisitor
- type ObjectTagsVisitor
- type PruneChildlessVisitor
- type PruneTagsVisitor
- type ReplaceDest
- type ReplaceNameVisitor
- type ServiceOperationReplaceVisitor
- type TagMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditDiffClass ¶
type AuditDiffClassification ¶
type AuditDiffClassification struct { SpecificFields AuditDiffFieldClasses `json:"fields"` DefaultClass AuditDiffClass `json:"default"` }
func (*AuditDiffClassification) Get ¶
func (classes *AuditDiffClassification) Get(path string) *AuditDiffClass
type AuditDiffFieldClasses ¶
type AuditDiffFieldClasses struct {
// contains filtered or unexported fields
}
func (*AuditDiffFieldClasses) UnmarshalJSON ¶
func (c *AuditDiffFieldClasses) UnmarshalJSON(buf []byte) error
type ClusterNameVisitor ¶
type ClusterNameVisitor struct {
// contains filtered or unexported fields
}
func (ClusterNameVisitor) Enter ¶
func (visitor ClusterNameVisitor) Enter(tree *tftree.SpanTree, span *model.Span) tftree.TreeVisitor
func (ClusterNameVisitor) Exit ¶
func (visitor ClusterNameVisitor) Exit(tree *tftree.SpanTree, span *model.Span)
func (ClusterNameVisitor) Kind ¶
func (ClusterNameVisitor) Kind() string
type CollapseNestingVisitor ¶
type CollapseNestingVisitor struct { ShouldCollapse utilmarshal.StringFilter `json:"shouldCollapse"` // tests traceSource TagMappings map[string][]TagMapping `json:"tagMappings"` // key = traceSource AuditDiffClasses AuditDiffClassification `json:"auditDiffClasses"` // key = prefix LogTypeMapping map[zconstants.LogType]string `json:"logTypeMapping"` // key = log type, value = log field }
Deletes child spans with a non-pseudo trace source and injects them as logs in the nesting span.
Multiple logs of the same span are aggregated into one log, flattening them into a field.
Must be followed by PruneTagsVisitor in the last step.
func (CollapseNestingVisitor) Enter ¶
func (visitor CollapseNestingVisitor) Enter(tree *tftree.SpanTree, span *model.Span) tftree.TreeVisitor
func (CollapseNestingVisitor) Exit ¶
func (visitor CollapseNestingVisitor) Exit(tree *tftree.SpanTree, span *model.Span)
func (CollapseNestingVisitor) Kind ¶
func (CollapseNestingVisitor) Kind() string
type CompactDurationVisitor ¶
type CompactDurationVisitor struct{}
Reduce pseudospan duration into a "flame" shape.
func (CompactDurationVisitor) Enter ¶
func (visitor CompactDurationVisitor) Enter(tree *tftree.SpanTree, span *model.Span) tftree.TreeVisitor
func (CompactDurationVisitor) Exit ¶
func (visitor CompactDurationVisitor) Exit(tree *tftree.SpanTree, span *model.Span)
func (CompactDurationVisitor) Kind ¶
func (CompactDurationVisitor) Kind() string
type ExtractNestingVisitor ¶
type ExtractNestingVisitor struct { // Filters the trace sources to delete. MatchesPseudoType utilmarshal.StringFilter `json:"matchesPseudoType"` }
Deletes spans matching MatchesPseudoType and brings their children one level up.
func (ExtractNestingVisitor) Enter ¶
func (visitor ExtractNestingVisitor) Enter(tree *tftree.SpanTree, span *model.Span) tftree.TreeVisitor
func (ExtractNestingVisitor) Exit ¶
func (visitor ExtractNestingVisitor) Exit(tree *tftree.SpanTree, span *model.Span)
func (ExtractNestingVisitor) Kind ¶
func (ExtractNestingVisitor) Kind() string
type GroupByTraceSourceVisitor ¶
type GroupByTraceSourceVisitor struct {
ShouldBeGrouped utilmarshal.StringFilter `json:"shouldBeGrouped"`
}
Splits span logs into pseudospans grouped by traceSource.
func (GroupByTraceSourceVisitor) Enter ¶
func (visitor GroupByTraceSourceVisitor) Enter(tree *tftree.SpanTree, span *model.Span) tftree.TreeVisitor
func (GroupByTraceSourceVisitor) Exit ¶
func (visitor GroupByTraceSourceVisitor) Exit(tree *tftree.SpanTree, span *model.Span)
func (GroupByTraceSourceVisitor) Kind ¶
func (GroupByTraceSourceVisitor) Kind() string
type ObjectTagsVisitor ¶
type ObjectTagsVisitor struct {
ResourceTags []string `json:"resourceTags"`
}
Copy tags from child spans to the object.
func (ObjectTagsVisitor) Enter ¶
func (visitor ObjectTagsVisitor) Enter(tree *tftree.SpanTree, span *model.Span) tftree.TreeVisitor
func (ObjectTagsVisitor) Exit ¶
func (visitor ObjectTagsVisitor) Exit(tree *tftree.SpanTree, span *model.Span)
func (ObjectTagsVisitor) Kind ¶
func (ObjectTagsVisitor) Kind() string
type PruneChildlessVisitor ¶
type PruneChildlessVisitor struct{}
func (PruneChildlessVisitor) Enter ¶
func (visitor PruneChildlessVisitor) Enter(tree *tftree.SpanTree, span *model.Span) tftree.TreeVisitor
func (PruneChildlessVisitor) Exit ¶
func (visitor PruneChildlessVisitor) Exit(tree *tftree.SpanTree, span *model.Span)
Prune in postorder traversal to recursively remove higher pseudospans without leaves.
func (PruneChildlessVisitor) Kind ¶
func (PruneChildlessVisitor) Kind() string
type PruneTagsVisitor ¶
type PruneTagsVisitor struct{}
func (PruneTagsVisitor) Enter ¶
func (visitor PruneTagsVisitor) Enter(tree *tftree.SpanTree, span *model.Span) tftree.TreeVisitor
func (PruneTagsVisitor) Exit ¶
func (visitor PruneTagsVisitor) Exit(tree *tftree.SpanTree, span *model.Span)
func (PruneTagsVisitor) Kind ¶
func (PruneTagsVisitor) Kind() string
type ReplaceDest ¶
type ReplaceDest string
const ( ReplaceDestService ReplaceDest = "service" ReplaceDestOperation ReplaceDest = "operation" )
type ReplaceNameVisitor ¶
type ReplaceNameVisitor struct{}
func (ReplaceNameVisitor) Enter ¶
func (visitor ReplaceNameVisitor) Enter(tree *tftree.SpanTree, span *model.Span) tftree.TreeVisitor
func (ReplaceNameVisitor) Exit ¶
func (visitor ReplaceNameVisitor) Exit(tree *tftree.SpanTree, span *model.Span)
func (ReplaceNameVisitor) Kind ¶
func (ReplaceNameVisitor) Kind() string
type ServiceOperationReplaceVisitor ¶
type ServiceOperationReplaceVisitor struct { TraceSource string `json:"traceSource"` Dest ReplaceDest `json:"dest"` Source []string `json:"source"` }
func (ServiceOperationReplaceVisitor) Enter ¶
func (visitor ServiceOperationReplaceVisitor) Enter(tree *tftree.SpanTree, span *model.Span) tftree.TreeVisitor
func (ServiceOperationReplaceVisitor) Exit ¶
func (visitor ServiceOperationReplaceVisitor) Exit(tree *tftree.SpanTree, span *model.Span)
func (ServiceOperationReplaceVisitor) Kind ¶
func (ServiceOperationReplaceVisitor) Kind() string
type TagMapping ¶
Click to show internal directories.
Click to hide internal directories.