OpenTelemetry#
OpenTelemetry is an open-source observability framework designed to provide a unified standard for collecting and exporting telemetry data such as traces, metrics, and logs. It aims to make observability a built-in feature of software development, simplifying the integration and standardization of telemetry data across various services. For more details, you can read the official OpenTelemetry documentation.
Quick Start#
To use OpenTelemetry in FastStream, you just need to:
-
Install
FastStream
along withopentelemetry-sdk
andopentelemetry-exporter-otlp
-
Configure
TracerProvider
with the gRPC exporter: -
Add
TelemetryMiddleware
to your broker:
In the following documentation sections, you can find detailed information about all OpenTelemetry features available in FastStream.
OpenTelemetry FastStream Example#
You can also take a look at a pre-configured project and use it as a reference for your services and infrastructure.
To see how to set up, visualize, and configure tracing for FastStream services, checkout the example project.
The example includes:
- Three
FastStream
services - Exporting traces to
Grafana Tempo
viagRPC
- Visualization of traces using
Grafana
- Collecting metrics and exporting them with
Prometheus
- A
Grafana dashboard
for metrics - Examples with custom spans
- A pre-configured
docker-compose
with the entire infrastructure