File: README.md

package info (click to toggle)
opentelemetry-cpp 1.23.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,372 kB
  • sloc: cpp: 96,239; sh: 1,766; makefile: 36; python: 31
file content (15 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Multi Processor Trace Example

In this example, the application in `main.cc` initializes and registers a tracer
provider from the [OpenTelemetry
SDK](https://github.com/open-telemetry/opentelemetry-cpp). 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](https://github.com/open-telemetry/opentelemetry-cpp/tree/main/api).
Resulting telemetry is directed to stdout through the StdoutSpanExporter, and
saved as a variable (vector of spans) through `InMemorySpanExporter`.

See [CONTRIBUTING.md](../../CONTRIBUTING.md) for instructions on building and
running the example.