(s Span)
| 179 | } |
| 180 | |
| 181 | func bucketizeDuration(s Span) (Static, bool) { |
| 182 | d := s.DurationNanos() |
| 183 | if d < 2 { |
| 184 | return NewStaticNil(), false |
| 185 | } |
| 186 | // Bucket is in seconds |
| 187 | return NewStaticFloat(Log2Bucketize(d) / float64(time.Second)), true |
| 188 | } |
| 189 | |
| 190 | // exemplarAttribute captures a closure around the attribute so it doesn't have to be passed along with every span. |
| 191 | // should be more efficient. |
nothing calls this directly
no test coverage detected