opentelemetry-cpp/examples/multi_processor
Marc Alff 545f9f4108
[CodeHealth] fix include-what-you-use, part 8 (#3465)
2025-06-09 10:23:10 +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 Enable line-length lint for markdown docs (#1268) 2022-03-16 07:17:12 -07:00
main.cc [CodeHealth] fix include-what-you-use, part 8 (#3465) 2025-06-09 10:23:10 +02:00

README.md

Multi Processor Trace Example

In this example, the application in main.cc initializes and registers a tracer provider from the OpenTelemetry SDK. The TracerProvider is connected to two processor-exporter pipelines - for exporting simultaneously to StdoutSpanExporter and InMemorySpanExporter. The application then calls a foo_library which has been instrumented using the OpenTelemetry API. Resulting telemetry is directed to stdout through the StdoutSpanExporter, and saved as a variable (vector of spans) through InMemorySpanExporter.

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