Testing and compiling Native Images
Now, it is time to try out the tools for testing and building Native Images!
The following tools will be covered in this section:
- Running the tracing agent
- Executing native tests
- Creating a Native Image for the current OS
- Creating a Native Image as a Docker image
Since the first three tools require GraalVM and its Native Image
compiler locally, we must switch to the GraalVM-based Java compiler with this command:
sdk use java 24-graalce
Next, we will go through the tools one by one; let’s start with the tracing agent!
Running the tracing agent
For the microservices in this book, the tracing agent is not required. But it can be interesting to see how to use it in other cases. If, for example, one of your microservices requires help from the tracing agent to generate the required reachability metadata.
If you want to try out the tracing agent, you can do so with the following steps...