Fix tracing wrapper comment

This commit is contained in:
Catherine Fang 2022-10-30 21:25:52 -04:00
parent 526650fc13
commit 2f30a80b33

View File

@ -86,7 +86,7 @@ func WithTracing(handler http.Handler, tp oteltrace.TracerProvider, serviceName
// Example usage:
// tp := NewProvider(...)
// config, _ := rest.InClusterConfig()
// config.Wrap(WrapperFor(&tp))
// config.Wrap(WrapperFor(tp))
// kubeclient, _ := clientset.NewForConfig(config)
func WrapperFor(tp oteltrace.TracerProvider) transport.WrapperFunc {
return func(rt http.RoundTripper) http.RoundTripper {