Add Tracing Via Fastrace #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/tracing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request introduces OpenTelemetry tracing to the project, updates dependencies, and adds a Docker Compose file for containerized development. The most important changes include integrating OpenTelemetry with the
fastracelibrary, adding environment variables to configure tracing, and setting up Docker Compose services for the application and Jaeger.OpenTelemetry Integration:
Cargo.toml: Added dependencies for OpenTelemetry (opentelemetry,opentelemetry-otlp,opentelemetry_sdk) andfastrace-opentelemetryto enable distributed tracing.src/main.rs: Replaced theConsoleReporterwithOpenTelemetryReporterfor tracing. Configured the reporter with an OTLP exporter and resource attributes such asservice.name.Environment Variables for Tracing:
src/main.rs: Added support for theOLTP_EXPORTER_ENDPOINTenvironment variable to configure the OTLP exporter endpoint. UpdatedPORTparsing to ensure it is a validu16. [1] [2]Docker Compose Setup:
docker-compose.yml: Added services for the application and Jaeger. Configured ports, environment variables, and health checks for Jaeger. Mounted theassetsdirectory as a volume for the application.Pull Request Overview
This PR introduces OpenTelemetry tracing into the project by integrating the fastrace library with an OpenTelemetry reporter, updates dependency versions, and adds a Docker Compose setup for containerized development with Jaeger for visualization.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
src/main.rs:35
docker-compose.yml:27