I started working with lifecycle policies and noticed that you can only choose a lifecycle policy for the whole APM transactions, errors, metrics and spans but not for specified services. I want to choose a lifecycle policy depended on the APM service.
The APM feature to choose an environment variable does not help if you can't choose how to manipulate this specified environment/service.
I use the built-in Kibana APM server and a python and js agent.
I could not find any information or solutions to resolve this problem.