I have to integrate datadog script in all the APIs, is there any way I can do it in single action rather than changing the each proxy
Sure!
Build your logging logic into a SharedFlow, and then attach that via a FlowHook.
You can search around for those terms, and you'll get some hints (probably from here and from other places).