Instrumenting and monitoring with OpenTelemetry
In this recipe, we’ll focus on how you can easily instrument your application with OpenTelemetry and use Elastic Stack as your observability backend. While the previous two recipes leveraged Elastic APM agents to instrument applications, we will now turn to OpenTelemetry agents for the collection of application traces, logs, and metrics. OpenTelemetry is a framework designed to assist developers in gathering and analyzing telemetry data from their applications. It offers a standardized approach for logging how applications perform, including details related to traces, metrics, and logs. The following figure illustrates how OpenTelemetry integrates with the Elastic Observability architecture:
Figure 10.11 – Elastic Observability reference architecture with OpenTelemetry
OpenTelemetry is designed to be user friendly and adaptable, allowing developers to select the most suitable tools and services...