opentelemetry-cpp/examples/simple
Doug Barker 549f2b009d
[TEST] test examples in CI with CMake Part 1 (#3449)
2025-06-05 20:49:45 +02:00
..
BUILD Fixed copyright in examples. (#1964) 2023-02-07 05:59:12 +00:00
CMakeLists.txt [TEST] test examples in CI with CMake Part 1 (#3449) 2025-06-05 20:49:45 +02:00
README.md lint and reformat markdown (#579) 2021-02-12 14:09:40 -08:00
main.cc [SDK] Support OTEL_SDK_DISABLED environment variable (#3245) 2025-02-05 21:42:51 +01:00

README.md

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.