(needles []Attribute, haystack Span)
| 1222 | } |
| 1223 | |
| 1224 | func lookup(needles []Attribute, haystack Span) Static { |
| 1225 | for _, n := range needles { |
| 1226 | if v, ok := haystack.AttributeFor(n); ok { |
| 1227 | return v |
| 1228 | } |
| 1229 | } |
| 1230 | |
| 1231 | return NewStaticNil() |
| 1232 | } |
| 1233 | |
| 1234 | type MetricsEvaluator struct { |
| 1235 | start, end uint64 |
no test coverage detected