Closed dashpole closed 3 days ago
Hmmm... This seems to imply that the requests Header is always required to be initialized: https://pkg.go.dev/net/http#RoundTripper. I've also looked through many other instrumentation libraries (prometheus and other otel http libraries), and none of them check for nil req.Headers
Description
Stack trace:
Environment
This occurred in the kubelet of a GKE cluster.
Steps To Reproduce
Not easily reproducible
Expected behavior
Whether the request header is nil or not, kubelet shouldn't panic.