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
FastStreamalong withopentelemetry-sdkandopentelemetry-exporter-otlp -
Configure
TracerProviderwith the gRPC exporter: -
Add
TelemetryMiddlewareto 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
FastStreamservices - Exporting traces to
Grafana TempoviagRPC - Visualization of traces using
Grafana - Collecting metrics and exporting them with
Prometheus - A
Grafana dashboardfor metrics - Examples with custom spans
- A pre-configured
docker-composewith the entire infrastructure
