in enrichments/trace/internal/elastic/span.go [661:677]
func getRepresentativeCount(tracestate string) float64 {
var p uint64
otValue := getValueForKeyInString(tracestate, "ot", ',', '=')
if otValue != "" {
pValue := getValueForKeyInString(otValue, "p", ';', ':')
if pValue != "" {
p, _ = strconv.ParseUint(pValue, 10, 6)
}
}
if p == 63 {
// p-value == 63 represents zero adjusted count
return 0.0
}
return math.Pow(2, float64(p))
}