func Weight(s *pb.Span) float64 {
	if s == nil {
		return 1
	}
	sampleRate, ok := s.Metrics[keySamplingRateGlobal]
	if !ok || sampleRate <= 0.0 || sampleRate > 1.0 {
		return 1
	}
	return 1.0 / sampleRate
}
// Weight returns the weight of the span as defined for sampling, i.e. the
// inverse of the sampling rate.
Weight returns the weight of the span as defined for sampling, i.e. the
inverse of the sampling rate.
// Weight returns the weight of the span as defined for sampling i . e . the // inverse of the sampling rate .
func Weight(s *pb.Span) float64 {
	if s == nil {
		return 1
	}
	sampleRate, ok := s.Metrics[keySamplingRateGlobal]
	if !ok || sampleRate <= 0.0 || sampleRate > 1.0 {
		return 1
	}
	return 1.0 / sampleRate
}
func Weight ( s * pb . Span ) float64 { if s == nil { return 1 } sampleRate , ok := s . Metrics [ keySamplingRateGlobal ] if ! ok || sampleRate <= 0.0 || sampleRate > 1.0 { return 1 } return 1.0 / sampleRate }
Weight returns the weight of the span as defined for sampling, i.e.
Weight returns the weight of the span as defined for sampling i . e .