MCPcopy
hub / github.com/grafana/tempo / newRootExprWithMetrics

Function newRootExprWithMetrics

pkg/traceql/ast.go:87–97  ·  view source on GitHub ↗
(e PipelineElement, m firstStageElement)

Source from the content-addressed store, hash-verified

85}
86
87func newRootExprWithMetrics(e PipelineElement, m firstStageElement) *RootExpr {
88 p, ok := e.(Pipeline)
89 if !ok {
90 p = newPipeline(e)
91 }
92
93 return &RootExpr{
94 Pipeline: p,
95 MetricsPipeline: m,
96 }
97}
98
99func newRootExprWithMetricsTwoStage(e PipelineElement, m1 firstStageElement, m2 secondStageElement) *RootExpr {
100 p, ok := e.(Pipeline)

Callers 3

TestHintsFunction · 0.85
TestMetricsFunction · 0.85
ParseMethod · 0.85

Calls 1

newPipelineFunction · 0.85

Tested by 2

TestHintsFunction · 0.68
TestMetricsFunction · 0.68