ZeroTierOne/ext/opentelemetry-cpp-1.21.0/examples/simple
2025-07-11 10:37:21 -07:00
..
BUILD add otel library to ext 2025-07-11 10:37:21 -07:00
CMakeLists.txt add otel library to ext 2025-07-11 10:37:21 -07:00
main.cc add otel library to ext 2025-07-11 10:37:21 -07:00
README.md add otel library to ext 2025-07-11 10:37:21 -07:00

Simple Trace Example

In this example, the application in main.cc initializes and registers a tracer provider from the OpenTelemetry SDK. The application then calls a foo_library which has been instrumented using the OpenTelemetry API. Resulting telemetry is directed to stdout through the StdoutSpanExporter.

See CONTRIBUTING.md for instructions on building and running the example.