mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #113458 from CatherineF-dev/fix-tracing-wrapper-comment
Fix tracing wrapper comment
This commit is contained in:
commit
4d2128b523
@ -86,7 +86,7 @@ func WithTracing(handler http.Handler, tp oteltrace.TracerProvider, serviceName
|
|||||||
// Example usage:
|
// Example usage:
|
||||||
// tp := NewProvider(...)
|
// tp := NewProvider(...)
|
||||||
// config, _ := rest.InClusterConfig()
|
// config, _ := rest.InClusterConfig()
|
||||||
// config.Wrap(WrapperFor(&tp))
|
// config.Wrap(WrapperFor(tp))
|
||||||
// kubeclient, _ := clientset.NewForConfig(config)
|
// kubeclient, _ := clientset.NewForConfig(config)
|
||||||
func WrapperFor(tp oteltrace.TracerProvider) transport.WrapperFunc {
|
func WrapperFor(tp oteltrace.TracerProvider) transport.WrapperFunc {
|
||||||
return func(rt http.RoundTripper) http.RoundTripper {
|
return func(rt http.RoundTripper) http.RoundTripper {
|
||||||
|
Loading…
Reference in New Issue
Block a user