code: func (mc *MetricsConfiguration) SampleRate() float64 {
  	if mc.SamplingRate > 0.0 && mc.SamplingRate <= 1.0 {
  		return mc.SamplingRate
  	}
  	return defaultSamplingRate
  }
docs: // SampleRate returns the metrics sampling rate.