diff --git a/config/confighttp/clientinfohandler.go b/config/confighttp/clientinfohandler.go index 25105cf51a6..464153bc2c7 100644 --- a/config/confighttp/clientinfohandler.go +++ b/config/confighttp/clientinfohandler.go @@ -11,8 +11,6 @@ import ( "go.opentelemetry.io/collector/client" ) -var _ http.Handler = (*clientInfoHandler)(nil) - // clientInfoHandler is an http.Handler that enhances the incoming request context with client.Info. type clientInfoHandler struct { next http.Handler diff --git a/config/confighttp/clientinfohandler_test.go b/config/confighttp/clientinfohandler_test.go index d8201cad149..bbd18ec52fd 100644 --- a/config/confighttp/clientinfohandler_test.go +++ b/config/confighttp/clientinfohandler_test.go @@ -5,11 +5,14 @@ package confighttp // import "go.opentelemetry.io/collector/config/confighttp" import ( "net" + "net/http" "testing" "github.com/stretchr/testify/assert" ) +var _ http.Handler = (*clientInfoHandler)(nil) + func TestParseIP(t *testing.T) { testCases := []struct { desc string