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

Function allIntrinsics

pkg/traceql/engine_metrics.go:1206–1222  ·  view source on GitHub ↗
(conds []Condition)

Source from the content-addressed store, hash-verified

1204}
1205
1206func allIntrinsics(conds []Condition) bool {
1207 for _, cond := range conds {
1208 if cond.Attribute.Intrinsic != IntrinsicNone {
1209 continue
1210 }
1211
1212 // This is a very special case. resource.service.name is also always present
1213 // (required by spec) so it can be moved too.
1214 if cond.Attribute.Scope == AttributeScopeResource && cond.Attribute.Name == "service.name" {
1215 continue
1216 }
1217
1218 // Anything else is not an intrinsic
1219 return false
1220 }
1221 return true
1222}
1223
1224func lookup(needles []Attribute, haystack Span) Static {
1225 for _, n := range needles {

Callers 1

optimizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected