Disabling collection in Go client

Hello!

What would be the best approach to disable data collection using the go_client?
We need to obey a given environment variable value and enable/disable collection of metrics accordingly.

Thanks a lot!