OpenTelemetry is an an open-source observability framework that aims to standardize the generation, collection, and management of telemetry data(Logs, metrics, and traces). It is incubated under Cloud Native Computing Foundation(Cloud Native Computing Foundation), the same foundation which incubated Kubernetes.
OpenTelemetry is quietly becoming the default standard for generating, transmitting and managing observability data and new-age companies are embracing it for future-proof instrumentation of their applications.
In this guide, you will learn how to implement OpenTelemetry in Python Applications. Following lessons cover everything you need to know about using OpenTelemetry to implement observability.
Lesson 1: Setting up a basic Flask application
In this tutorial, you will create a simple Flask to-do application with MongoDB.
Lesson 2: Setting up SigNoz
OpenTelemetry does not provide a storage and analytics layer. In this tutorial, you will set up SigNoz to send your OpenTelemetry data.
Lesson 3-1: Auto-instrumentation with OpenTelemetry
Set up automatic traces, metrics, and logs collection in the Flask application.
Lesson 3-2: Manual instrumentation with OpenTelemetry
Learn how to implement manual instrumentation with OpenTelemetry for more granular controls.
Lesson 4: Create spans manually in your Python application
Learn how to create manual spans and add metadata and attributes to them.
Lesson 5: Create custom metrics with OpenTelemetry
Create custom metrics like counter, gauge, histogram in your application.
Lesson 6: Configure OpenTelemetry logging SDK in Python
Learn how to configure OpenTelemetry logging SDK in Python.
Lesson 7: Customize metrics streams produced by OpenTelemetry SDK using views
In this tutorial, learn how to:
- how to configure to change the default aggregation using the name of the instrument
- how to have multiple exporter with different temporalities
- how to limit the number of attributes that are output for a metric
- how to drop a metric entirely
At the end of this tutorial series, you will be able to use OpenTelemetry effectively to monitor your Python application.