diff --git a/pkg/network/usm/nodejs.go b/pkg/network/usm/nodejs.go index 1d9d310a95554a..bfbc6700eb0eac 100644 --- a/pkg/network/usm/nodejs.go +++ b/pkg/network/usm/nodejs.go @@ -9,6 +9,7 @@ package usm import ( "fmt" + usmconfig "github.com/DataDog/datadog-agent/pkg/network/usm/config" "io" "strings" @@ -198,7 +199,7 @@ type nodeJSMonitor struct { var _ protocols.Protocol = (*nodeJSMonitor)(nil) func newNodeJSMonitor(mgr *manager.Manager, c *config.Config) (protocols.Protocol, error) { - if !c.EnableNodeJSMonitoring { + if !c.EnableNodeJSMonitoring || usmconfig.TLSSupported(c) { return nil, nil }