Not able to see the traces of my applicaton(mule4)

Hi,

Did you really rename the index to %{[service.name]}-%{[service.environment]}-%{+yyyy.MM.dd}

As described in the docs here, APM requires indices starting with apm- so your index should be named:
apm-%{[service.name]}-%{[service.environment]}-%{+yyyy.MM.dd}

Otherwise, the data would be stored by the apm server but would not be read by the APM feature in Kibana.

Best regards
Wolfram