Slide 1

Slide 1 text

Open Telemetry: Web Development Presenter: @rakaadinugroho

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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.

Slide 4

Slide 4 text

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.

Slide 5

Slide 5 text

Open Telemetry Architecture Instrumen Traci Metr Logg Collec Expor

Slide 6

Slide 6 text

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.

Slide 7

Slide 7 text

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.

Slide 8

Slide 8 text

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.

Slide 9

Slide 9 text

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.

Slide 10

Slide 10 text

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.

Slide 11

Slide 11 text

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.

Slide 12

Slide 12 text

Q&A