Share
Embed
Open Telemetry in Web Development
Use oTel Standard to Collect & Export Metrics, Logs, and Traces
Raka Adi Nugroho
July 03, 2024
Transcript
12 slides
-
Agenda 1. Introduction to Open Telemetry 2. Importance of Open
Telemetry in Web Development 3. Open Telemetry Architecture 4. Instrumentation with Open Telemetry 5. Collecting and Exporting Traces and Metrics 6. Integrating Open Telemetry with Web Frameworks 7. Open Telemetry Best Practices 8. Demo: Implementing Open Telemetry in a Web Application 9. Conclusion 10. Q&A -
Introduction to Open Telemetry Open Telemetry is an open-source observability
framework. It provides a set of APIs, libraries, and tools for collecting, exporting, and analyzing telemetry data. Telemetry data includes traces, metrics, and logs. Open Telemetry aims to standardize observability across different systems and programming languages. -
Importance of Open Telemetry in Web Development Web applications are
complex and distributed systems. Open Telemetry helps in understanding the performance and behavior of web applications. It enables developers to identify and troubleshoot performance bottlenecks. Open Telemetry provides insights into the end-to-end request flow and dependencies between services. -
Instrumentation with Open Telemetry Instrumentation involves adding code to the
application to capture telemetry data. Open Telemetry provides SDKs and libraries for different programming languages and frameworks. Instrumentation can be done manually or using auto-instrumentation libraries. Auto-instrumentation libraries automatically instrument popular frameworks and libraries. -
Collecting and Exporting Traces and Metrics Traces capture the end-to-end
flow of requests through the application. Metrics provide aggregated data about the performance and behavior of the application. Open Telemetry supports various exporters to send the collected data to backend systems. Exporters can send data to observability platforms like Prometheus, Jaeger, or Elasticsearch. -
Integrating Open Telemetry with Web Frameworks Open Telemetry provides integrations
with popular web frameworks like Express, Django, and Flask. These integrations automatically instrument the framework code to capture telemetry data. Developers can customize the instrumentation and add additional context to the captured data. Integrating Open Telemetry with web frameworks enables detailed monitoring and troubleshooting. -
Open Telemetry Best Practices Start with a clear observability strategy
and define the telemetry data you want to capture. Use semantic conventions and standardize attribute names to ensure consistency. Avoid over-instrumentation and focus on capturing relevant data. Regularly review and optimize the instrumentation to minimize performance impact. -
Demo: Implementing Open Telemetry in a Web Application In this
demo, we will implement Open Telemetry in a Node.js web application. We will use the Express framework and the Open Telemetry Node.js SDK. The demo will showcase how to capture and export traces and metrics. We will also demonstrate how to integrate Open Telemetry with an observability platform. -
Conclusion Open Telemetry is a powerful observability framework for web
development. It provides a standardized way to capture, collect, and export telemetry data. Open Telemetry helps in understanding the performance and behavior of web applications. Integrating Open Telemetry with web frameworks enables detailed monitoring and troubleshooting.