| 1204 | } |
| 1205 | |
| 1206 | func 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 | |
| 1224 | func lookup(needles []Attribute, haystack Span) Static { |
| 1225 | for _, n := range needles { |