Elastic APM Agent - Upgrades

Hello, this is a general question.

From my understanding, APM agents don't have some form of Fleet to manage and upgrade the agents to the latest version. Is this something planned? It feels very scattered to have to go to each service and run upgrade commands.

Hello Erik,

I don't think this will be possible in the future. In Java (and I guess in .NET is similar), the agent modifies the Java Bytecode using bytebuddy. That means you cannot just replace the old version with a new one so you would need to restart your application.

Your best bet would be to have a CI/CD pipeline where changing the agent version would automatically cause a redeployment of your application with the latest agent. We use the programmatic attachment for that as we can deliver the agent as part of our application.

Best regards
Wolfram

1 Like