code: func (t *OpenTracing) ToTracingConfig() *tracing.Configuration {
  	ret := &tracing.Configuration{
  		Disabled:   !t.Enable,
  		RPCMetrics: t.RPCMetrics,
  		Reporter:   &tracing.ReporterConfig{},
  		Sampler:    &tracing.SamplerConfig{},
  	}
  	ret.Reporter.QueueSize = t.Reporter.QueueSize
  	ret.Reporter.BufferFlushInterval = t.Reporter.BufferFlushInterval
  	ret.Reporter.LogSpans = t.Reporter.LogSpans
  	ret.Reporter.LocalAgentHostPort = t.Reporter.LocalAgentHostPort
  
  	ret.Sampler.Type = t.Sampler.Type
  	ret.Sampler.Param = t.Sampler.Param
  	ret.Sampler.SamplingServerURL = t.Sampler.SamplingServerURL
  	ret.Sampler.MaxOperations = t.Sampler.MaxOperations
  	ret.Sampler.SamplingRefreshInterval = t.Sampler.SamplingRefreshInterval
  	return ret
  }
docs: // ToTracingConfig converts *OpenTracing to *tracing.Configuration.