Don't collect version if metadata is not enabled (#7010)
Don't collect version if metadata is not enabled (#7010)

* Collect metadata behind a flag

* Don't log if metadata isn't enabled
DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core