Home / Companies / Logz.io / Blog / Post Details
Content Deep Dive

Distributed Tracing for C++ Applications with OpenTelemetry & Logz.io

Blog post from Logz.io

Post Details
Company
Date Published
Author
Gedalyah Reback
Word Count
2,149
Language
English
Hacker News Points
-
Summary

Organizations transitioning from monolithic to microservices-based architectures face increased system complexity, requiring efficient debugging tools such as logging and distributed tracing. This text discusses adding distributed tracing to C++ applications using the OpenTelemetry framework, which includes monitoring tools for metrics, logs, and traces. The process involves setting up two HTTP services with C++ using the Pistache framework and implementing tracing with the OpenTelemetry C++ client, which exports traces to Logz.io using the Jaeger exporter. The services are containerized using Docker and orchestrated with Docker Compose, enabling the visualization of traces via a local or remote Jaeger UI. By following this approach, developers can track interactions between microservices and external APIs, enhancing observability and performance monitoring of their applications.