Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OTel C++] Add CMake build support #36063

Closed
wants to merge 7 commits into from
Closed

Conversation

yashykt
Copy link
Member

@yashykt yashykt commented Mar 7, 2024

Changes -

  • Add CMake build support to grpcpp_otel_plugin. Currently, we are only supporting the find_package CONFIG method for depending on opentelemetry-cpp.
  • Since, grpcpp_otel_plugin is an extension of gRPC, it will not be built by default. To enable building of this target, a new CMake option gRPC_BUILD_GRPCPP_OTEL_PLUGIN is being added.
  • Also add CMakeLists.txt to the otel example.

The otel_plugin_test can also be built through cmake but, for the CI to work, there are some additional changes. Those will be made in an upcoming PR.

@yashykt yashykt added the release notes: yes Indicates if PR needs to be in release notes label Mar 7, 2024
@copybara-service copybara-service bot closed this in 3032b5c Mar 8, 2024
copybara-service bot pushed a commit that referenced this pull request Mar 13, 2024
Earlier, the tests just had bazel support. With CMake support added in #36063, we can also add CI CMake support for the tests. A major benefit of this is that we also get coverage for the various platforms that we test from our portability test suite.

Closes #36087

COPYBARA_INTEGRATE_REVIEW=#36087 from yashykt:OTelCISupport b28fbe0
PiperOrigin-RevId: 615543685
eugeneo pushed a commit to eugeneo/grpc that referenced this pull request Mar 18, 2024
Earlier, the tests just had bazel support. With CMake support added in grpc#36063, we can also add CI CMake support for the tests. A major benefit of this is that we also get coverage for the various platforms that we test from our portability test suite.

Closes grpc#36087

COPYBARA_INTEGRATE_REVIEW=grpc#36087 from yashykt:OTelCISupport b28fbe0
PiperOrigin-RevId: 615543685
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants