How to use Java apm agent recording flag in spring cloud?

Hi, I need clarification on how to disable the java APM agent in the spring cloud.

I am running java microservices with a single server and multiple apps.

I tried with recording=false, enable=false It won't work for me in my cloud locally working fine for me. If any extra configuration I need could help for us