(s Span, a Attribute)
| 2128 | ) |
| 2129 | |
| 2130 | func FloatizeAttribute(s Span, a Attribute) (float64, StaticType) { |
| 2131 | v, ok := s.AttributeFor(a) |
| 2132 | if !ok { |
| 2133 | return 0, TypeNil |
| 2134 | } |
| 2135 | |
| 2136 | f := v.Float() |
| 2137 | if math.IsNaN(f) { |
| 2138 | return 0, TypeNil |
| 2139 | } |
| 2140 | return f, v.Type |
| 2141 | } |
| 2142 | |
| 2143 | // convertProtoLabelsToTraceQL converts protobuf labels to traceql Labels format. |
| 2144 | // If skipBucket is true, it will skip any label with key matching internalLabelBucket. |
no test coverage detected