func NewFixedRateExtractor(rateByServiceAndName map[string]map[string]float64) Extractor {
	// lower-case keys for case insensitive matching (see #3113)
	rbs := make(map[string]map[string]float64, len(rateByServiceAndName))
	for service, opRates := range rateByServiceAndName {
		k := strings.ToLower(service)
		rbs[k] = make(map[string]float64, len(opRates))
		for op, rate := range opRates {
			rbs[k][strings.ToLower(op)] = rate
		}
	}
	return &fixedRateExtractor{rateByServiceAndName: rbs}
}
// NewFixedRateExtractor returns an APM event extractor that decides whether to extract APM events from spans following
// the provided extraction rates for a span's (service name, operation name) pair.
NewFixedRateExtractor returns an APM event extractor that decides whether to extract APM events from spans following
the provided extraction rates for a span's (service name, operation name) pair.
// NewFixedRateExtractor returns an APM event extractor that decides whether to extract APM events from spans following // the provided extraction rates for a span ' s ( service name operation name ) pair .
func NewFixedRateExtractor(rateByServiceAndName map[string]map[string]float64) Extractor {
	rbs := make(map[string]map[string]float64, len(rateByServiceAndName))
	for service, opRates := range rateByServiceAndName {
		k := strings.ToLower(service)
		rbs[k] = make(map[string]float64, len(opRates))
		for op, rate := range opRates {
			rbs[k][strings.ToLower(op)] = rate
		}
	}
	return &fixedRateExtractor{rateByServiceAndName: rbs}
}
func NewFixedRateExtractor ( rateByServiceAndName map [ string ] map [ string ] float64 ) Extractor { rbs := make ( map [ string ] map [ string ] float64 , len ( rateByServiceAndName ) ) for service , opRates := range rateByServiceAndName { k := strings . ToLower ( service ) rbs [ k ] = make ( map [ string ] float64 , len ( opRates ) ) for op , rate := range opRates { rbs [ k ] [ strings . ToLower ( op ) ] = rate } } return & fixedRateExtractor { rateByServiceAndName : rbs } }
NewFixedRateExtractor returns an APM event extractor that decides whether to extract APM events from spans following
the provided extraction rates for a span's (service name, operation name) pair.
NewFixedRateExtractor returns an APM event extractor that decides whether to extract APM events from spans following the provided extraction rates for a span ' s ( service name operation name ) pair .
// lower-case keys for case insensitive matching (see #3113)