Instrumenting your application with Elastic APM
Elastic APM, as part of the Elastic Observability solution, provides real-time insights into application performance, allowing developers and operations teams to monitor, troubleshoot, and optimize their applications. In this recipe, we will learn how to instrument your application with Elastic APM agents.
Getting ready
Ensure you have cloned the GitHub repository for the book.
Verify that you have a functioning Docker engine on your local machine.
For your Elastic Cloud deployment, remember the saved password for the default user, elastic
, and the Elasticsearch endpoint URL (refer to Chapter 1). Check that no programs are running on the following local machine ports: 5000
, 5001
, 5002
, 3001
, and 9000
.
The snippets for this recipe can be found at the following link: https://github.com/PacktPublishing/Elastic-Stack-8.x-Cookbook/blob/main/Chapter10/snippets.md#instrumenting-your-application-with-elastic-apm-agent.