chore: Add support for server-side hooks tests. #498
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Adds a new OpenTelemetry integration for the server SDK (tracing hook) with example and tests, enables hooks in contract tests, and updates build/CI/release to support it.
libs/server-sdk-otelprovidingTracingHook(include/launchdarkly/server_side/integrations/otel/tracing_hook.hpp,src/tracing_hook.cpp) with options builder and unit tests.LD_BUILD_OTEL_SUPPORT,LD_BUILD_OTEL_FETCH_DEPS,LD_OTEL_CPP_VERSION; links againstopentelemetry-cpp::api.examples/hello-cpp-server-oteldemonstrating tracing hook and OTLP exporter.hooksconfiguration and related types.ContractTestHookused by server test harness; registers via config and advertisesevaluation-hooksandtrack-hookscapabilities.scripts/build.shto build OTel targets and fetch deps when needed.install_curlinput to shared CI and uses it for OTel builds; setsCMAKE_PREFIX_PATHfor CURL.server-otel.ymlto build/test OTel on Linux/macOS/Windows.release-pleaseconfig/manifests updated to includelibs/server-sdk-otel(v0.1.0) and outputs; docs workflow supportslibs/server-sdk-otel.CMakeLists.txtaddsLD_BUILD_OTEL_SUPPORToption andadd_subdirectory(libs/server-sdk-otel); examples gated on it.cmake/json.cmakeswitches FetchContent name tonlohmann_jsonto avoid target duplication.Written by Cursor Bugbot for commit e62e575. This will update automatically on new commits. Configure here.