From 308109670f2d06f29648184054c5d1e8786efc91 Mon Sep 17 00:00:00 2001 From: Ricardo Amaro Date: Wed, 17 Apr 2024 17:03:05 +0100 Subject: [PATCH] Fix getting-started.md --- content/en/docs/languages/cpp/getting-started.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/en/docs/languages/cpp/getting-started.md b/content/en/docs/languages/cpp/getting-started.md index 8bc45ef3d376..8232fcb8e9d2 100644 --- a/content/en/docs/languages/cpp/getting-started.md +++ b/content/en/docs/languages/cpp/getting-started.md @@ -269,10 +269,14 @@ include_directories(${OATPP_ROOT}/src) # Use find_package to find and configure the opentelemetry-cpp package find_package(opentelemetry-cpp CONFIG REQUIRED) -# Link against the OpenTelemetry C++ library +# Link against each OpenTelemetry C++ library target_link_libraries(dice-server PRIVATE ${OATPP_LIB} - opentelemetry-cpp::opentelemetry-cpp) + opentelemetry-cpp::api + opentelemetry-cpp::sdk + opentelemetry-cpp::trace + opentelemetry-cpp::resource + opentelemetry-cpp::ostream_span_exporter) ``` Update the `main.cpp` file with the following code to initialize a tracer and to