tfstep

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditDiffClass

type AuditDiffClass struct {
	ShouldDisplay bool   `json:"shouldDisplay"`
	Name          string `json:"name"`
	Priority      int    `json:"priority"`
}

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

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

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

type GroupByTraceSourceVisitor

type GroupByTraceSourceVisitor struct {
	ShouldBeGrouped utilmarshal.StringFilter `json:"shouldBeGrouped"`
}

Splits span logs into pseudospans grouped by traceSource.

func (GroupByTraceSourceVisitor) Enter

func (GroupByTraceSourceVisitor) Exit

func (visitor GroupByTraceSourceVisitor) Exit(tree *tftree.SpanTree, span *model.Span)

func (GroupByTraceSourceVisitor) Kind

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

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 (ServiceOperationReplaceVisitor) Exit

func (visitor ServiceOperationReplaceVisitor) Exit(tree *tftree.SpanTree, span *model.Span)

func (ServiceOperationReplaceVisitor) Kind

type TagMapping

type TagMapping struct {
	FromSpanTag string `json:"fromSpanTag"`
	ToLogField  string `json:"toLogField"`
}

Jump to

Keyboard shortcuts

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