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