func()

in pkg/instrumentation/podmutator.go [59:88]


func (langInsts languageInstrumentations) isSingleInstrumentationEnabled() bool {
	count := 0

	if langInsts.Java.Instrumentation != nil {
		count++
	}
	if langInsts.NodeJS.Instrumentation != nil {
		count++
	}
	if langInsts.Python.Instrumentation != nil {
		count++
	}
	if langInsts.DotNet.Instrumentation != nil {
		count++
	}
	if langInsts.ApacheHttpd.Instrumentation != nil {
		count++
	}
	if langInsts.Nginx.Instrumentation != nil {
		count++
	}
	if langInsts.Go.Instrumentation != nil {
		count++
	}
	if langInsts.Sdk.Instrumentation != nil {
		count++
	}

	return count == 1
}